aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorRune K Svendsen <runesvend@gmail.com>2011-12-09 19:19:27 +0100
committerRune K Svendsen <runesvend@gmail.com>2011-12-09 19:19:27 +0100
commit4dba26620cf1015b8e980ce3e401d15c64e1169d (patch)
tree359ee5d42c42cb99ea5018f75e3c59a517ea6bac /src/init.cpp
parent8848a70ba16765313438a289b8837732e81650f7 (diff)
When using Qt GUI, move parameter-parsing to start of qt/bitcoin.cpp:main()
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp3
1 files changed, 3 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"))
{