Skip to content

Commit 68354e7

Browse files
committed
[QT] Call inits parameter interaction before we create the options model
1 parent 411b05a commit 68354e7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/qt/bitcoin.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ class BitcoinApplication: public QApplication
201201
/// Create payment server
202202
void createPaymentServer();
203203
#endif
204+
/// parameter interaction/setup based on rules
205+
void parameterSetup();
204206
/// Create options model
205207
void createOptionsModel(bool resetSettings);
206208
/// Create main window
@@ -397,6 +399,11 @@ void BitcoinApplication::startThread()
397399
coreThread->start();
398400
}
399401

402+
void BitcoinApplication::parameterSetup()
403+
{
404+
InitParameterInteraction();
405+
}
406+
400407
void BitcoinApplication::requestInitialize()
401408
{
402409
qDebug() << __func__ << ": Requesting initialize";
@@ -644,6 +651,8 @@ int main(int argc, char *argv[])
644651
// Install qDebug() message handler to route to debug.log
645652
qInstallMessageHandler(DebugMessageHandler);
646653
#endif
654+
// Allow parameter interaction before we create the options model
655+
app.parameterSetup();
647656
// Load GUI settings from QSettings
648657
app.createOptionsModel(mapArgs.count("-resetguisettings") != 0);
649658

0 commit comments

Comments
 (0)