mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-23 03:59:29 +00:00
TxInfoDialog: ensure it is closed
This commit is contained in:
parent
6c87a6a141
commit
ddb78db5b5
1 changed files with 4 additions and 3 deletions
|
@ -666,9 +666,10 @@ void MainWindow::onTransactionCommitted(bool status, PendingTransaction *tx, con
|
|||
if (msgBox.clickedButton() == showDetailsButton) {
|
||||
this->showHistoryTab();
|
||||
TransactionInfo *txInfo = m_ctx->wallet->history()->transaction(txid.first());
|
||||
TxInfoDialog dialog{m_ctx, txInfo, this};
|
||||
connect(&dialog, &TxInfoDialog::resendTranscation, this, &MainWindow::onResendTransaction);
|
||||
dialog.exec();
|
||||
auto *dialog = new TxInfoDialog(m_ctx, txInfo, this);
|
||||
connect(dialog, &TxInfoDialog::resendTranscation, this, &MainWindow::onResendTransaction);
|
||||
dialog->show();
|
||||
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||
}
|
||||
|
||||
m_sendWidget->clearFields();
|
||||
|
|
Loading…
Reference in a new issue