mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
qt, refactor: Keep OptionsDialog in the main event loop
This commit is contained in:
parent
13f618818d
commit
7830cd0b35
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue