Skip to content

Commit dec0787

Browse files
jonasschnelliFuzzbawls
authored andcommitted
[QT] Call inits parameter interaction before we create the options model
1 parent 18480ce commit dec0787

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/qt/pivx.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ class BitcoinApplication : public QApplication
184184
/// Create payment server
185185
void createPaymentServer();
186186
#endif
187+
/// parameter interaction/setup based on rules
188+
void parameterSetup();
187189
/// Create options model
188190
void createOptionsModel();
189191
/// Create main window
@@ -411,6 +413,11 @@ void BitcoinApplication::startThread()
411413
coreThread->start();
412414
}
413415

416+
void BitcoinApplication::parameterSetup()
417+
{
418+
InitParameterInteraction();
419+
}
420+
414421
void BitcoinApplication::requestInitialize()
415422
{
416423
qDebug() << __func__ << ": Requesting initialize";
@@ -639,6 +646,8 @@ int main(int argc, char* argv[])
639646
#endif
640647
// Install qDebug() message handler to route to debug.log
641648
qInstallMessageHandler(DebugMessageHandler);
649+
// Allow parameter interaction before we create the options model
650+
app.parameterSetup();
642651
// Load GUI settings from QSettings
643652
app.createOptionsModel();
644653

0 commit comments

Comments
 (0)