Skip to content

Commit c8bae37

Browse files
committed
qt, refactor: Keep PSBTOperationsDialog in the main event loop
1 parent 7fa91e8 commit c8bae37

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/qt/walletframe.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,9 @@ void WalletFrame::gotoLoadPSBT(bool from_clipboard)
220220
return;
221221
}
222222

223-
PSBTOperationsDialog* dlg = new PSBTOperationsDialog(this, currentWalletModel(), clientModel);
223+
auto dlg = new PSBTOperationsDialog(this, currentWalletModel(), clientModel);
224224
dlg->openWithPSBT(psbtx);
225-
dlg->setAttribute(Qt::WA_DeleteOnClose);
226-
dlg->exec();
225+
GUIUtil::ShowModalDialogAndDeleteOnClose(dlg);
227226
}
228227

229228
void WalletFrame::encryptWallet()

0 commit comments

Comments
 (0)