electrum

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

commit 864706574bacc3f3564f30a18b178066fbfde009
parent 034b0a03130138db53661de29cdac0a66a499f12
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed,  2 May 2018 11:56:03 +0200

fix #4330

Diffstat:
Mgui/qt/request_list.py | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gui/qt/request_list.py b/gui/qt/request_list.py @@ -51,7 +51,10 @@ class RequestList(MyTreeWidget): if not item.isSelected(): return addr = str(item.text(1)) - req = self.wallet.receive_requests[addr] + req = self.wallet.receive_requests.get(addr) + if req is None: + self.update() + return expires = age(req['time'] + req['exp']) if req.get('exp') else _('Never') amount = req['amount'] message = self.wallet.labels.get(addr, '') @@ -110,7 +113,10 @@ class RequestList(MyTreeWidget): if not item: return addr = str(item.text(1)) - req = self.wallet.receive_requests[addr] + req = self.wallet.receive_requests.get(addr) + if req is None: + self.update() + return column = self.currentColumn() column_title = self.headerItem().text(column) column_data = item.text(column)