Merge pull request #4893 from cculianu/fix_tx_desc_coins_tab

UI: Make Coins Tab -> Details TX Dialog show TX Description (label)
This commit is contained in:
ThomasV 2018-12-03 09:08:30 +01:00 committed by GitHub
commit dc46149f1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,8 @@ class UTXOList(MyTreeWidget):
txid = selected[0].split(':')[0]
tx = self.wallet.transactions.get(txid)
if tx:
menu.addAction(_("Details"), lambda: self.parent.show_transaction(tx))
label = self.wallet.get_label(txid) or None # Prefer None if empty (None hides the Description: field in the window)
menu.addAction(_("Details"), lambda: self.parent.show_transaction(tx, label))
menu.exec_(self.viewport().mapToGlobal(position))