]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
TxInfoDialog: ensure it is closed
authortobtoht <thotbot@protonmail.com>
Thu, 21 Oct 2021 17:56:40 +0000 (19:56 +0200)
committertobtoht <thotbot@protonmail.com>
Thu, 21 Oct 2021 17:56:40 +0000 (19:56 +0200)
src/MainWindow.cpp

index 3f830a3291e6572f894b1b08e6b23770d8459e04..20b1f8ae8e5d2c06674bd3c40ef20d1ae69da2ed 100644 (file)
@@ -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();