qt, refactor: Keep PSBTOperationsDialog in the main event loop

This commit is contained in:
Hennadii Stepanov 2021-06-07 18:37:13 +03:00
parent 7fa91e8312
commit c8bae37a7a
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -220,10 +220,9 @@ void WalletFrame::gotoLoadPSBT(bool from_clipboard)
return; return;
} }
PSBTOperationsDialog* dlg = new PSBTOperationsDialog(this, currentWalletModel(), clientModel); auto dlg = new PSBTOperationsDialog(this, currentWalletModel(), clientModel);
dlg->openWithPSBT(psbtx); dlg->openWithPSBT(psbtx);
dlg->setAttribute(Qt::WA_DeleteOnClose); GUIUtil::ShowModalDialogAndDeleteOnClose(dlg);
dlg->exec();
} }
void WalletFrame::encryptWallet() void WalletFrame::encryptWallet()