aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-06-07 18:37:13 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-09-07 09:39:03 +0300
commitc8bae37a7a646badf8e79669bf06ac174e13cd6f (patch)
tree4e27a9822b1cf0240a7eb7a225bee4639f572a34 /src
parent7fa91e831227e556bd8a7ae3da64bd59d4f30d5f (diff)
qt, refactor: Keep PSBTOperationsDialog in the main event loop
Diffstat (limited to 'src')
-rw-r--r--src/qt/walletframe.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/qt/walletframe.cpp b/src/qt/walletframe.cpp
index f694fbecb5..3c2e669c9a 100644
--- a/src/qt/walletframe.cpp
+++ b/src/qt/walletframe.cpp
@@ -220,10 +220,9 @@ void WalletFrame::gotoLoadPSBT(bool from_clipboard)
return;
}
- PSBTOperationsDialog* dlg = new PSBTOperationsDialog(this, currentWalletModel(), clientModel);
+ auto dlg = new PSBTOperationsDialog(this, currentWalletModel(), clientModel);
dlg->openWithPSBT(psbtx);
- dlg->setAttribute(Qt::WA_DeleteOnClose);
- dlg->exec();
+ GUIUtil::ShowModalDialogAndDeleteOnClose(dlg);
}
void WalletFrame::encryptWallet()