electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 21ab65e5f76c10c46dc067cf4427522fee22fd64
parent 0ef853c046bdb5749db608e70107d96d192016a6
Author: SomberNight <somber.night@protonmail.com>
Date:   Mon,  3 Jun 2019 22:21:53 +0200

qt lists right click: fix #5365

Diffstat:
Melectrum/gui/qt/address_list.py | 2++
Melectrum/gui/qt/utxo_list.py | 2++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/electrum/gui/qt/address_list.py b/electrum/gui/qt/address_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: diff --git a/electrum/gui/qt/utxo_list.py b/electrum/gui/qt/utxo_list.py @@ -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]