Browse Source

do not show used addresses if there are not any

283
Michael Wozniak 11 years ago
parent
commit
acca8d502b
  1. 5
      gui/qt/main_window.py

5
gui/qt/main_window.py

@ -1232,7 +1232,7 @@ class ElectrumWindow(QMainWindow):
seq_item = QTreeWidgetItem( [ name, '', '', '', ''] )
account_item.addChild(seq_item)
used_item = QTreeWidgetItem( [ _("Used"), '', '', '', ''] )
seq_item.addChild(used_item)
used_flag = False
if not is_change: seq_item.setExpanded(True)
is_red = False
@ -1255,6 +1255,9 @@ class ElectrumWindow(QMainWindow):
if is_red:
item.setBackgroundColor(1, QColor('red'))
if len(h) > 0 and c == -u:
if not used_flag:
seq_item.addChild(used_item)
used_flag = True
used_item.addChild(item)
else:
seq_item.addChild(item)

Loading…
Cancel
Save