diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp index 351305f3fabb1..0641661fcb545 100644 --- a/src/qt/transactionview.cpp +++ b/src/qt/transactionview.cpp @@ -532,6 +532,9 @@ void TransactionView::showDetails() TransactionDescDialog *dlg = new TransactionDescDialog(selection.at(0)); dlg->setAttribute(Qt::WA_DeleteOnClose); m_opened_dialogs.append(dlg); + connect(dlg, &QObject::destroyed, [this, dlg] { + m_opened_dialogs.removeOne(dlg); + }); dlg->show(); } }