mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-10 21:05:00 +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) {
|
if (msgBox.clickedButton() == showDetailsButton) {
|
||||||
this->showHistoryTab();
|
this->showHistoryTab();
|
||||||
TransactionInfo *txInfo = m_ctx->wallet->history()->transaction(txid.first());
|
TransactionInfo *txInfo = m_ctx->wallet->history()->transaction(txid.first());
|
||||||
TxInfoDialog dialog{m_ctx, txInfo, this};
|
auto *dialog = new TxInfoDialog(m_ctx, txInfo, this);
|
||||||
connect(&dialog, &TxInfoDialog::resendTranscation, this, &MainWindow::onResendTransaction);
|
connect(dialog, &TxInfoDialog::resendTranscation, this, &MainWindow::onResendTransaction);
|
||||||
dialog.exec();
|
dialog->show();
|
||||||
|
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_sendWidget->clearFields();
|
m_sendWidget->clearFields();
|
||||||
|
|
Loading…
Reference in a new issue