Browse Source
qt lists right click: fix #5365
dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
2 changed files with
4 additions and
0 deletions
-
electrum/gui/qt/address_list.py
-
electrum/gui/qt/utxo_list.py
|
|
@ -187,6 +187,8 @@ class AddressList(MyTreeView): |
|
|
|
menu = QMenu() |
|
|
|
if not multi_select: |
|
|
|
idx = self.indexAt(position) |
|
|
|
if not idx.isValid(): |
|
|
|
return |
|
|
|
col = idx.column() |
|
|
|
item = self.model().itemFromIndex(idx) |
|
|
|
if not item: |
|
|
|
|
|
@ -124,6 +124,8 @@ class UTXOList(MyTreeView): |
|
|
|
menu.addAction(_("Details"), lambda: self.parent.show_transaction(tx, label)) |
|
|
|
# "Copy ..." |
|
|
|
idx = self.indexAt(position) |
|
|
|
if not idx.isValid(): |
|
|
|
return |
|
|
|
col = idx.column() |
|
|
|
column_title = self.model().horizontalHeaderItem(col).text() |
|
|
|
copy_text = self.model().itemFromIndex(idx).text() if col != self.Columns.OUTPOINT else selected[0] |
|
|
|