electrum

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

commit f0b4d1ecce39519b671a5f1d1a6388241881fab7
parent 64b2844e81a7a2ec3f0393e8a28d4a8fc6c6a974
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed, 20 Feb 2019 19:50:08 +0100

qt request_list: minor fix for context menu

Diffstat:
Melectrum/gui/qt/request_list.py | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/electrum/gui/qt/request_list.py b/electrum/gui/qt/request_list.py @@ -173,7 +173,6 @@ class RequestList(MyTreeView): return addr = item.data(ROLE_RHASH_OR_ADDR) request_type = item.data(ROLE_REQUEST_TYPE) - menu = None assert request_type in [REQUEST_TYPE_BITCOIN, REQUEST_TYPE_LN] if request_type == REQUEST_TYPE_BITCOIN: req = self.wallet.receive_requests.get(addr) @@ -186,10 +185,9 @@ class RequestList(MyTreeView): column_title = self.model().horizontalHeaderItem(column).text() column_data = self.model().itemFromIndex(idx).text() menu = QMenu(self) - if column != self.Columns.TYPE: - if column == self.Columns.AMOUNT: - column_data = column_data.strip() - menu.addAction(_("Copy {}").format(column_title), lambda: self.parent.do_copy(column_title, column_data)) + if column == self.Columns.AMOUNT: + column_data = column_data.strip() + menu.addAction(_("Copy {}").format(column_title), lambda: self.parent.do_copy(column_title, column_data)) if request_type == REQUEST_TYPE_BITCOIN: self.create_menu_bitcoin_payreq(menu, addr) elif request_type == REQUEST_TYPE_LN: