From f4cb687f4b8df1448a296d95b4057fa5838007be Mon Sep 17 00:00:00 2001 From: thomasv Date: Wed, 6 Jun 2012 16:52:39 +0200 Subject: [PATCH] fix: receive_list might contain imported keys --- lib/gui_qt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/gui_qt.py b/lib/gui_qt.py index c054b60d1..46e7bc7aa 100644 --- a/lib/gui_qt.py +++ b/lib/gui_qt.py @@ -665,13 +665,13 @@ class ElectrumWindow(QMainWindow): if n==0: tx = "None" - if l == self.receive_list: + if address in self.wallet.addresses: gap += 1 if gap > self.wallet.gap_limit: is_red = True else: tx = "%d"%n - if l == self.receive_list: + if address in self.wallet.addresses: gap = 0 c, u = self.wallet.get_addr_balance(address) @@ -683,7 +683,7 @@ class ElectrumWindow(QMainWindow): item.setBackgroundColor(0, QColor('lightgreen')) item.setFont(0, QFont(MONOSPACE_FONT)) - if is_red and l==self.receive_list: + if is_red and address in self.wallet.addresses: item.setBackgroundColor(0, QColor('red')) l.addTopLevelItem(item)