diff --git a/src/init.cpp b/src/init.cpp index 76317557..b9e35aea 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -148,7 +148,10 @@ bool AppInit2(int argc, char* argv[]) // // Parameters // + // If Qt is used, parameters are parsed in qt/bitcoin.cpp's main() +#if !defined(QT_GUI) ParseParameters(argc, argv); +#endif if (mapArgs.count("-datadir")) { diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index dd326a69..cba4e851 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -120,6 +120,8 @@ int main(int argc, char *argv[]) Q_INIT_RESOURCE(bitcoin); QApplication app(argc, argv); + ParseParameters(argc, argv); + // Load language files for system locale: // - First load the translator for the base language, without territory // - Then load the more specific locale translator