Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 756 Lines • ▼ Show 20 Lines | #if defined(Q_OS_WIN) | ||||
// Windows messages (WM_QUERYENDSESSION and WM_ENDSESSION) | // Windows messages (WM_QUERYENDSESSION and WM_ENDSESSION) | ||||
qApp->installNativeEventFilter(new WinShutdownMonitor()); | qApp->installNativeEventFilter(new WinShutdownMonitor()); | ||||
#endif | #endif | ||||
// Install qDebug() message handler to route to debug.log | // Install qDebug() message handler to route to debug.log | ||||
qInstallMessageHandler(DebugMessageHandler); | qInstallMessageHandler(DebugMessageHandler); | ||||
// Allow parameter interaction before we create the options model | // Allow parameter interaction before we create the options model | ||||
app.parameterSetup(); | app.parameterSetup(); | ||||
// Load GUI settings from QSettings | // Load GUI settings from QSettings | ||||
app.createOptionsModel(gArgs.IsArgSet("-resetguisettings")); | app.createOptionsModel(gArgs.GetBoolArg("-resetguisettings", false)); | ||||
// Subscribe to global signals from core | // Subscribe to global signals from core | ||||
uiInterface.InitMessage.connect(InitMessage); | uiInterface.InitMessage.connect(InitMessage); | ||||
// Get global config | // Get global config | ||||
Config &config = const_cast<Config &>(GetConfig()); | Config &config = const_cast<Config &>(GetConfig()); | ||||
if (gArgs.GetBoolArg("-splash", DEFAULT_SPLASHSCREEN) && | if (gArgs.GetBoolArg("-splash", DEFAULT_SPLASHSCREEN) && | ||||
Show All 39 Lines |