electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 9c9ceb702a3a7bd0b535793db1c3478e4a402c01
parent b9e5edd704534648bb4b016f216955ed176f447f
Author: ThomasV <thomasv@electrum.org>
Date:   Sat, 23 Nov 2019 15:12:16 +0100

fix #5729

Diffstat:
Melectrum/gui/qt/history_list.py | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/electrum/gui/qt/history_list.py b/electrum/gui/qt/history_list.py @@ -580,9 +580,12 @@ class HistoryList(MyTreeView, AcceptFileDragDrop): if self.hm.flags(self.model().mapToSource(idx)) & Qt.ItemIsEditable: super().mouseDoubleClickEvent(event) else: - self.show_transaction(tx_item['txid']) + self.show_transaction(tx_item) - def show_transaction(self, tx_hash): + def show_transaction(self, tx_item): + if tx_item.get('lightning'): + return + tx_hash = tx_item['txid'] tx = self.wallet.db.get_transaction(tx_hash) if not tx: return @@ -630,7 +633,7 @@ class HistoryList(MyTreeView, AcceptFileDragDrop): # TODO use siblingAtColumn when min Qt version is >=5.11 persistent = QPersistentModelIndex(org_idx.sibling(org_idx.row(), c)) menu.addAction(_("Edit {}").format(label), lambda p=persistent: self.edit(QModelIndex(p))) - menu.addAction(_("Details"), lambda: self.show_transaction(tx_hash)) + menu.addAction(_("Details"), lambda: self.show_transaction(tx_item)) if is_unconfirmed and tx: # note: the current implementation of RBF *needs* the old tx fee rbf = is_mine and not tx.is_final() and fee is not None