mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
use #ifdef QT_UI to distinguish Qt UI instead of hardcoded #if 0
This commit is contained in:
12
src/init.cpp
12
src/init.cpp
@@ -75,8 +75,7 @@ void HandleSIGTERM(int)
|
||||
//
|
||||
// Start
|
||||
//
|
||||
#if 0
|
||||
#ifndef GUI
|
||||
#if !defined(QT_GUI) && !defined(GUI)
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
bool fRet = false;
|
||||
@@ -88,7 +87,6 @@ int main(int argc, char* argv[])
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
bool AppInit(int argc, char* argv[])
|
||||
{
|
||||
@@ -228,10 +226,8 @@ bool AppInit2(int argc, char* argv[])
|
||||
fServer = GetBoolArg("-server");
|
||||
|
||||
/* force fServer when running without GUI */
|
||||
#if 0
|
||||
#ifndef GUI
|
||||
#if !defined(QT_GUI) && !defined(GUI)
|
||||
fServer = true;
|
||||
#endif
|
||||
#endif
|
||||
fPrintToConsole = GetBoolArg("-printtoconsole");
|
||||
fPrintToDebugger = GetBoolArg("-printtodebugger");
|
||||
@@ -529,11 +525,9 @@ bool AppInit2(int argc, char* argv[])
|
||||
SetStartOnSystemStartup(true);
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
#ifndef GUI
|
||||
#if !defined(QT_GUI) && !defined(GUI)
|
||||
while (1)
|
||||
Sleep(5000);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user