From d2374d62aad751733999f188495703e3522b01ef Mon Sep 17 00:00:00 2001 From: Calin Culianu Date: Sun, 2 Dec 2018 14:53:44 +0200 Subject: [PATCH 1/2] UI Pet Peeve: Make Coins Tab -> Details pop up a tx dialog that actually includes the tx description as seen in UTXOList (if available) --- electrum/gui/qt/utxo_list.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qt/utxo_list.py b/electrum/gui/qt/utxo_list.py index 5985d9c8c..64735de1a 100644 --- a/electrum/gui/qt/utxo_list.py +++ b/electrum/gui/qt/utxo_list.py @@ -71,7 +71,8 @@ class UTXOList(MyTreeWidget): txid = selected[0].split(':')[0] tx = self.wallet.transactions.get(txid) if tx: - menu.addAction(_("Details"), lambda: self.parent.show_transaction(tx)) + label = self.wallet.get_label(txid) + menu.addAction(_("Details"), lambda: self.parent.show_transaction(tx, label)) menu.exec_(self.viewport().mapToGlobal(position)) From 4386799fb0f02b785ed5d5c7a225d31a33eafc08 Mon Sep 17 00:00:00 2001 From: Calin Culianu Date: Sun, 2 Dec 2018 15:20:32 +0200 Subject: [PATCH 2/2] follow-up --- electrum/gui/qt/utxo_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/utxo_list.py b/electrum/gui/qt/utxo_list.py index 64735de1a..0a6dc3349 100644 --- a/electrum/gui/qt/utxo_list.py +++ b/electrum/gui/qt/utxo_list.py @@ -71,7 +71,7 @@ class UTXOList(MyTreeWidget): txid = selected[0].split(':')[0] tx = self.wallet.transactions.get(txid) if tx: - label = self.wallet.get_label(txid) + label = self.wallet.get_label(txid) or None # Prefer None if empty (None hides the Description: field in the window) menu.addAction(_("Details"), lambda: self.parent.show_transaction(tx, label)) menu.exec_(self.viewport().mapToGlobal(position))