tfollow-up prev - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 20957ac4d92d0e7f016f81597c7f5b81729d8bc6 DIR parent a4396f4f134b2052ca1e342aed4e0a4b82615806 HTML Author: SomberNight <somber.night@protonmail.com> Date: Tue, 11 Sep 2018 02:43:54 +0200 follow-up prev Diffstat: M electrum/gui/qt/history_list.py | 2 ++ M electrum/gui/qt/utxo_list.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/qt/history_list.py b/electrum/gui/qt/history_list.py t@@ -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): DIR diff --git a/electrum/gui/qt/utxo_list.py b/electrum/gui/qt/utxo_list.py t@@ -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))