qt, refactor: Keep OptionsDialog in the main event loop

This commit is contained in:
Hennadii Stepanov 2021-06-07 18:17:59 +03:00
parent 13f618818d
commit 7830cd0b35
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -990,10 +990,10 @@ void BitcoinGUI::openOptionsDialogWithTab(OptionsDialog::Tab tab)
if (!clientModel || !clientModel->getOptionsModel())
return;
OptionsDialog dlg(this, enableWallet);
dlg.setCurrentTab(tab);
dlg.setModel(clientModel->getOptionsModel());
dlg.exec();
auto dlg = new OptionsDialog(this, enableWallet);
dlg->setCurrentTab(tab);
dlg->setModel(clientModel->getOptionsModel());
GUIUtil::ShowModalDialogAndDeleteOnClose(dlg);
}
void BitcoinGUI::setNumBlocks(int count, const QDateTime& blockDate, double nVerificationProgress, bool header, SynchronizationState sync_state)