tfix: display imported addresses too - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit c8ddf49833b03ba064e7e27847767bb4e65dbe8f DIR parent 2db7b159e35414572a01473bc1a52cd94d2c48b6 HTML Author: thomasv <thomasv@gitorious> Date: Wed, 21 Dec 2011 18:10:21 +0100 fix: display imported addresses too Diffstat: M client/gui.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) --- DIR diff --git a/client/gui.py b/client/gui.py t@@ -921,14 +921,13 @@ class BitcoinGUI: def update_receiving_tab(self): self.recv_list.clear() - for address in self.wallet.addresses: + for address in self.wallet.all_addresses(): if self.wallet.is_change(address):continue label = self.wallet.labels.get(address) n = 0 - h = self.wallet.history.get(address) - if h: - for item in h: - if not item['is_in'] : n=n+1 + h = self.wallet.history.get(address,[]) + for item in h: + if not item['is_in'] : n=n+1 tx = "None" if n==0 else "%d"%n self.recv_list.append((address, label, tx ))