follow-up prev

This commit is contained in:
SomberNight 2018-09-11 02:43:54 +02:00
parent a4396f4f13
commit 20957ac4d9
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9
2 changed files with 4 additions and 1 deletions

View file

@ -297,6 +297,8 @@ class HistoryList(MyTreeWidget, AcceptFileDragDrop):
else: else:
tx_hash = item.data(0, Qt.UserRole) tx_hash = item.data(0, Qt.UserRole)
tx = self.wallet.transactions.get(tx_hash) tx = self.wallet.transactions.get(tx_hash)
if not tx:
return
self.parent.show_transaction(tx) self.parent.show_transaction(tx)
def update_labels(self): def update_labels(self):

View file

@ -68,6 +68,7 @@ class UTXOList(MyTreeWidget):
if len(selected) == 1: if len(selected) == 1:
txid = selected[0].split(':')[0] txid = selected[0].split(':')[0]
tx = self.wallet.transactions.get(txid) tx = self.wallet.transactions.get(txid)
if tx:
menu.addAction(_("Details"), lambda: self.parent.show_transaction(tx)) menu.addAction(_("Details"), lambda: self.parent.show_transaction(tx))
menu.exec_(self.viewport().mapToGlobal(position)) menu.exec_(self.viewport().mapToGlobal(position))