mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-19 05:12:03 +02:00
qt: Revert 7fa91e831227e556bd8a7ae3da64bd59d4f30d5f partially
The AskPassphraseDialog modal dialog must be synchronous here as expected in the WalletModel::requestUnlock() function. Fixed an introduced regression.
This commit is contained in:
parent
89c277a6fc
commit
5d7666b151
@ -242,9 +242,11 @@ void WalletView::unlockWallet()
|
||||
{
|
||||
// Unlock wallet when requested by wallet model
|
||||
if (walletModel->getEncryptionStatus() == WalletModel::Locked) {
|
||||
auto dlg = new AskPassphraseDialog(AskPassphraseDialog::Unlock, this);
|
||||
dlg->setModel(walletModel);
|
||||
GUIUtil::ShowModalDialogAndDeleteOnClose(dlg);
|
||||
AskPassphraseDialog dlg(AskPassphraseDialog::Unlock, this);
|
||||
dlg.setModel(walletModel);
|
||||
// A modal dialog must be synchronous here as expected
|
||||
// in the WalletModel::requestUnlock() function.
|
||||
dlg.exec();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user