don't allow -daemon in bitcoin-qt (changes only #defines)
authorWladimir J. van der Laan <laanwj@gmail.com>
Fri, 17 Feb 2012 13:46:06 +0000 (14:46 +0100)
committerLuke Dashjr <luke-jr+git@utopios.org>
Fri, 17 Feb 2012 14:14:38 +0000 (09:14 -0500)
src/init.cpp

index 51e9ed6..bb549ec 100644 (file)
@@ -209,7 +209,7 @@ bool AppInit2(int argc, char* argv[])
 #ifdef GUI
             "  -server          \t\t  " + _("Accept command line and JSON-RPC commands\n") +
 #endif
-#ifndef WIN32
+#if !defined(WIN32) && !defined(GUI)
             "  -daemon          \t\t  " + _("Run in the background as a daemon and accept commands\n") +
 #endif
             "  -testnet         \t\t  " + _("Use the test network\n") +
@@ -248,7 +248,7 @@ bool AppInit2(int argc, char* argv[])
     fTestNet = GetBoolArg("-testnet");
     fDebug = GetBoolArg("-debug");
 
-#ifndef WIN32
+#if !defined(WIN32) && !defined(GUI)
     fDaemon = GetBoolArg("-daemon");
 #else
     fDaemon = false;
@@ -279,7 +279,7 @@ bool AppInit2(int argc, char* argv[])
     }
 #endif
 
-#ifndef WIN32
+#if !defined(WIN32) && !defined(GUI)
     if (fDaemon)
     {
         // Daemonize