commit 20957ac4d92d0e7f016f81597c7f5b81729d8bc6
parent a4396f4f134b2052ca1e342aed4e0a4b82615806
Author: SomberNight <somber.night@protonmail.com>
Date: Tue, 11 Sep 2018 02:43:54 +0200
follow-up prev
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/electrum/gui/qt/history_list.py b/electrum/gui/qt/history_list.py
@@ -297,6 +297,8 @@ class HistoryList(MyTreeWidget, AcceptFileDragDrop):
else:
tx_hash = item.data(0, Qt.UserRole)
tx = self.wallet.transactions.get(tx_hash)
+ if not tx:
+ return
self.parent.show_transaction(tx)
def update_labels(self):
diff --git a/electrum/gui/qt/utxo_list.py b/electrum/gui/qt/utxo_list.py
@@ -68,7 +68,8 @@ class UTXOList(MyTreeWidget):
if len(selected) == 1:
txid = selected[0].split(':')[0]
tx = self.wallet.transactions.get(txid)
- menu.addAction(_("Details"), lambda: self.parent.show_transaction(tx))
+ if tx:
+ menu.addAction(_("Details"), lambda: self.parent.show_transaction(tx))
menu.exec_(self.viewport().mapToGlobal(position))