git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
11fd811
)
simplify if statement
author
thomasv
<thomasv@gitorious>
Mon, 28 Jan 2013 13:01:25 +0000 (14:01 +0100)
committer
thomasv
<thomasv@gitorious>
Mon, 28 Jan 2013 13:01:25 +0000 (14:01 +0100)
lib/gui_qt.py
patch
|
blob
|
history
diff --git
a/lib/gui_qt.py
b/lib/gui_qt.py
index
5fedda0
..
4986b38
100644
(file)
--- a/
lib/gui_qt.py
+++ b/
lib/gui_qt.py
@@
-1183,13
+1183,12
@@
class ElectrumWindow(QMainWindow):
h = self.wallet.history.get(address,[])
- if h == []:
- if address in self.wallet.addresses:
+ if address in self.wallet.addresses:
+ if h == []:
gap += 1
if gap > self.wallet.gap_limit:
is_red = True
- else:
- if address in self.wallet.addresses:
+ else:
gap = 0
num_tx = '*' if h == ['*'] else "%d"%len(h)