electrum

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

commit 6e58723328b2b7b3b80c452ef3c8c469a153124c
parent 1d8836c1738d6e55c838b59ca48d0da537fb9aac
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 12 Oct 2016 21:49:32 +0200

fix #1968

Diffstat:
Mgui/qt/main_window.py | 3+--
Mgui/qt/request_list.py | 2+-
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -697,8 +697,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): return w - def delete_payment_request(self, item): - addr = str(item.text(2)) + def delete_payment_request(self, addr): self.wallet.remove_payment_request(addr, self.config) self.request_list.update() self.clear_receive_tab() diff --git a/gui/qt/request_list.py b/gui/qt/request_list.py @@ -116,6 +116,6 @@ class RequestList(MyTreeWidget): menu.addAction(_("Copy %s")%column_title, lambda: self.parent.app.clipboard().setText(column_data)) menu.addAction(_("Copy URI"), lambda: self.parent.view_and_paste('URI', '', self.parent.get_request_URI(addr))) menu.addAction(_("Save as BIP70 file"), lambda: self.parent.export_payment_request(addr)) - menu.addAction(_("Delete"), lambda: self.parent.delete_payment_request(item)) + menu.addAction(_("Delete"), lambda: self.parent.delete_payment_request(addr)) run_hook('receive_list_menu', menu, addr) menu.exec_(self.viewport().mapToGlobal(position))