commit a043feebf2a39e4adfad1fa6d78b7369904bf0dc
parent 29e2570d3d45ede9e555f8667bad840fd5cf74b3
Author: ThomasV <thomasv@electrum.org>
Date: Mon, 9 Jan 2017 16:57:39 +0100
add 'copy address' to utxo menu
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/gui/qt/utxo_list.py b/gui/qt/utxo_list.py
@@ -61,6 +61,9 @@ class UTXOList(MyTreeWidget):
return
coins = filter(lambda x: self.get_name(x) in selected, self.utxos)
menu = QMenu()
+ if len(selected) == 1:
+ coin = coins[0]
+ menu.addAction(_("Copy Address"), lambda: self.parent.app.clipboard().setText(coin.get('address')))
menu.addAction(_("Spend"), lambda: self.parent.spend_coins(coins))
menu.exec_(self.viewport().mapToGlobal(position))