mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-27 15:28:49 +02:00
scripted-diff: Rename ShowModalDialogAndDeleteOnClose
-BEGIN VERIFY SCRIPT- sed -i 's/ShowModalDialogAndDeleteOnClose/ShowModalDialogAsynchronously/' -- $(git grep -l -e "ShowModalDialogAndDeleteOnClose") -END VERIFY SCRIPT- It is important to highlight that a modal dialog is showed asynchronously as there are cases when the synchronous QDialog::exec() is required.
This commit is contained in:
@@ -208,7 +208,7 @@ void WalletView::encryptWallet()
|
||||
auto dlg = new AskPassphraseDialog(AskPassphraseDialog::Encrypt, this);
|
||||
dlg->setModel(walletModel);
|
||||
connect(dlg, &QDialog::finished, this, &WalletView::encryptionStatusChanged);
|
||||
GUIUtil::ShowModalDialogAndDeleteOnClose(dlg);
|
||||
GUIUtil::ShowModalDialogAsynchronously(dlg);
|
||||
}
|
||||
|
||||
void WalletView::backupWallet()
|
||||
@@ -235,7 +235,7 @@ void WalletView::changePassphrase()
|
||||
{
|
||||
auto dlg = new AskPassphraseDialog(AskPassphraseDialog::ChangePass, this);
|
||||
dlg->setModel(walletModel);
|
||||
GUIUtil::ShowModalDialogAndDeleteOnClose(dlg);
|
||||
GUIUtil::ShowModalDialogAsynchronously(dlg);
|
||||
}
|
||||
|
||||
void WalletView::unlockWallet()
|
||||
|
||||
Reference in New Issue
Block a user