From dec078739aca63be8dc7c6e2fbb8267c2dfa86c3 Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Thu, 8 Oct 2015 01:01:29 -0700 Subject: [PATCH] [QT] Call inits parameter interaction before we create the options model --- src/qt/pivx.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/qt/pivx.cpp b/src/qt/pivx.cpp index c580acf401f17..1e2ad91f5b642 100644 --- a/src/qt/pivx.cpp +++ b/src/qt/pivx.cpp @@ -184,6 +184,8 @@ class BitcoinApplication : public QApplication /// Create payment server void createPaymentServer(); #endif + /// parameter interaction/setup based on rules + void parameterSetup(); /// Create options model void createOptionsModel(); /// Create main window @@ -411,6 +413,11 @@ void BitcoinApplication::startThread() coreThread->start(); } +void BitcoinApplication::parameterSetup() +{ + InitParameterInteraction(); +} + void BitcoinApplication::requestInitialize() { qDebug() << __func__ << ": Requesting initialize"; @@ -639,6 +646,8 @@ int main(int argc, char* argv[]) #endif // Install qDebug() message handler to route to debug.log qInstallMessageHandler(DebugMessageHandler); + // Allow parameter interaction before we create the options model + app.parameterSetup(); // Load GUI settings from QSettings app.createOptionsModel();