Skip to content

Commit

Permalink
Merge pull request #690 from runeksvendsen/qt-cmdline-options-parsing
Browse files Browse the repository at this point in the history
When using Qt GUI, move parameter-parsing to start of qt/bitcoin.cpp:main()
  • Loading branch information
gavinandresen committed Dec 19, 2011
2 parents bafb43d + 4dba266 commit 3528650
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/init.cpp
Expand Up @@ -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"))
{
Expand Down
2 changes: 2 additions & 0 deletions src/qt/bitcoin.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 3528650

Please sign in to comment.