From c8bb792f41dfa09584dcef2c8c08997a585eca40 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Thu, 28 Apr 2016 12:15:33 +0200 Subject: [PATCH] Merge #7939: qt: Make it possible to show details for multiple transactions f135e3c qt: Add transaction hash to details window title (Wladimir J. van der Laan) 17a6a21 qt: Make it possible to show details for multiple transactions (Wladimir J. van der Laan) --- src/qt/forms/transactiondescdialog.ui | 2 +- src/qt/transactiondescdialog.cpp | 2 +- src/qt/transactionview.cpp | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/qt/forms/transactiondescdialog.ui b/src/qt/forms/transactiondescdialog.ui index 5ae1e12856..3a698cfd1d 100644 --- a/src/qt/forms/transactiondescdialog.ui +++ b/src/qt/forms/transactiondescdialog.ui @@ -11,7 +11,7 @@ - Transaction details + Transaction details diff --git a/src/qt/transactiondescdialog.cpp b/src/qt/transactiondescdialog.cpp index 68e843b08d..cc089f32f6 100644 --- a/src/qt/transactiondescdialog.cpp +++ b/src/qt/transactiondescdialog.cpp @@ -17,7 +17,7 @@ TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *pa ui(new Ui::TransactionDescDialog) { ui->setupUi(this); - + setWindowTitle(tr("Details for %1").arg(idx.data(TransactionTableModel::TxIDRole).toString())); /* Open CSS when configured */ this->setStyleSheet(GUIUtil::loadStyleSheet()); diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp index 311cece908..4664817f3e 100644 --- a/src/qt/transactionview.cpp +++ b/src/qt/transactionview.cpp @@ -517,8 +517,9 @@ void TransactionView::showDetails() QModelIndexList selection = transactionView->selectionModel()->selectedRows(); if(!selection.isEmpty()) { - TransactionDescDialog dlg(selection.at(0)); - dlg.exec(); + TransactionDescDialog *dlg = new TransactionDescDialog(selection.at(0)); + dlg->setAttribute(Qt::WA_DeleteOnClose); + dlg->show(); } }