diff options
author | Rune K Svendsen <runesvend@gmail.com> | 2011-12-09 19:19:27 +0100 |
---|---|---|
committer | Rune K Svendsen <runesvend@gmail.com> | 2011-12-09 19:19:27 +0100 |
commit | 4dba26620cf1015b8e980ce3e401d15c64e1169d (patch) | |
tree | 359ee5d42c42cb99ea5018f75e3c59a517ea6bac /src | |
parent | 8848a70ba16765313438a289b8837732e81650f7 (diff) |
When using Qt GUI, move parameter-parsing to start of qt/bitcoin.cpp:main()
Diffstat (limited to 'src')
-rw-r--r-- | src/init.cpp | 3 | ||||
-rw-r--r-- | src/qt/bitcoin.cpp | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index dd8bdf5598..291510fc21 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 4aaad6bd2c..808a9f46be 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -118,6 +118,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 |