diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2015-10-08 10:01:29 +0200 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2015-11-27 13:26:01 +0100 |
commit | 68354e75e94c28bbe5aee1b1c3e4c5cb93c2c9ad (patch) | |
tree | 02f5cacf4aaaa0de6b7a36847c79ad5aca940c6f | |
parent | 411b05ac9511395923976bfbd0c153ddabf2ebcf (diff) |
[QT] Call inits parameter interaction before we create the options model
-rw-r--r-- | src/qt/bitcoin.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 06a6c239ef..372a6f62a5 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -201,6 +201,8 @@ public: /// Create payment server void createPaymentServer(); #endif + /// parameter interaction/setup based on rules + void parameterSetup(); /// Create options model void createOptionsModel(bool resetSettings); /// Create main window @@ -397,6 +399,11 @@ void BitcoinApplication::startThread() coreThread->start(); } +void BitcoinApplication::parameterSetup() +{ + InitParameterInteraction(); +} + void BitcoinApplication::requestInitialize() { qDebug() << __func__ << ": Requesting initialize"; @@ -644,6 +651,8 @@ int main(int argc, char *argv[]) // Install qDebug() message handler to route to debug.log qInstallMessageHandler(DebugMessageHandler); #endif + // Allow parameter interaction before we create the options model + app.parameterSetup(); // Load GUI settings from QSettings app.createOptionsModel(mapArgs.count("-resetguisettings") != 0); |