mirror of
https://github.com/wownero/wowlet.git
synced 2026-11-27 18:44:06 +01:00
TxInfoDialog: ensure it is closed
This commit is contained in:
+4
-3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user