mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 21:05:11 +00:00
fix #5729
This commit is contained in:
parent
b9e5edd704
commit
9c9ceb702a
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue