When using Qt GUI, move parameter-parsing to start of qt/bitcoin.cpp:main()

This commit is contained in:
Rune K Svendsen
2011-12-09 19:19:27 +01:00
parent 8848a70ba1
commit 4dba26620c
2 changed files with 5 additions and 0 deletions

View File

@@ -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"))
{