Browse Source

qt lists right click: fix #5365

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
SomberNight 6 years ago
parent
commit
21ab65e5f7
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/gui/qt/address_list.py
  2. 2
      electrum/gui/qt/utxo_list.py

2
electrum/gui/qt/address_list.py

@ -187,6 +187,8 @@ class AddressList(MyTreeView):
menu = QMenu() menu = QMenu()
if not multi_select: if not multi_select:
idx = self.indexAt(position) idx = self.indexAt(position)
if not idx.isValid():
return
col = idx.column() col = idx.column()
item = self.model().itemFromIndex(idx) item = self.model().itemFromIndex(idx)
if not item: if not item:

2
electrum/gui/qt/utxo_list.py

@ -124,6 +124,8 @@ class UTXOList(MyTreeView):
menu.addAction(_("Details"), lambda: self.parent.show_transaction(tx, label)) menu.addAction(_("Details"), lambda: self.parent.show_transaction(tx, label))
# "Copy ..." # "Copy ..."
idx = self.indexAt(position) idx = self.indexAt(position)
if not idx.isValid():
return
col = idx.column() col = idx.column()
column_title = self.model().horizontalHeaderItem(col).text() column_title = self.model().horizontalHeaderItem(col).text()
copy_text = self.model().itemFromIndex(idx).text() if col != self.Columns.OUTPOINT else selected[0] copy_text = self.model().itemFromIndex(idx).text() if col != self.Columns.OUTPOINT else selected[0]

Loading…
Cancel
Save