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:
@@ -71,7 +71,8 @@ class UTXOList(MyTreeWidget):
|
|||||||
txid = selected[0].split(':')[0]
|
txid = selected[0].split(':')[0]
|
||||||
tx = self.wallet.transactions.get(txid)
|
tx = self.wallet.transactions.get(txid)
|
||||||
if tx:
|
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))
|
menu.exec_(self.viewport().mapToGlobal(position))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user