fix to find hush wallet.dat at startup

This commit is contained in:
DenioD
2019-10-27 10:54:23 +01:00
parent 3f9fd047fd
commit 09a7682afd
8 changed files with 4136 additions and 21 deletions

View File

@@ -150,11 +150,7 @@ public:
parser.setApplicationDescription("Shielded desktop light wallet for hush");
parser.addHelpOption();
// Add an option to specify the conf file
QCommandLineOption confOption(QStringList() << "conf", "Use the hush.conf specified instead of looking for the default one.",
"confFile");
parser.addOption(confOption);
// Positional argument will specify a hush payment URI
parser.addPositionalArgument("HUSHURI", "An optional hush URI to pay");
@@ -207,11 +203,6 @@ public:
}
Settings::getInstance()->setUseEmbedded(false);
// Check to see if a conf location was specified
if (parser.isSet(confOption)) {
Settings::getInstance()->setUsinghushConf(parser.value(confOption));
}
w = new MainWindow();
w->setWindowTitle("SilentDragonLite v" + QString(APP_VERSION));