mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-06 14:19:59 -05:00
qt: Revert 7fa91e8312
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
1 changed files with 5 additions and 3 deletions
|
@ -242,9 +242,11 @@ void WalletView::unlockWallet()
|
||||||
{
|
{
|
||||||
// Unlock wallet when requested by wallet model
|
// Unlock wallet when requested by wallet model
|
||||||
if (walletModel->getEncryptionStatus() == WalletModel::Locked) {
|
if (walletModel->getEncryptionStatus() == WalletModel::Locked) {
|
||||||
auto dlg = new AskPassphraseDialog(AskPassphraseDialog::Unlock, this);
|
AskPassphraseDialog dlg(AskPassphraseDialog::Unlock, this);
|
||||||
dlg->setModel(walletModel);
|
dlg.setModel(walletModel);
|
||||||
GUIUtil::ShowModalDialogAndDeleteOnClose(dlg);
|
// A modal dialog must be synchronous here as expected
|
||||||
|
// in the WalletModel::requestUnlock() function.
|
||||||
|
dlg.exec();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue