From: tobtoht Date: Thu, 21 Oct 2021 17:56:40 +0000 (+0200) Subject: TxInfoDialog: ensure it is closed X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=ddb78db5b5fbf0396a753a1ddb19c6505882a391;p=gamesguru%2Ffeather.git TxInfoDialog: ensure it is closed --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 3f830a32..20b1f8ae 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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();