Browse Source

fix account renaming issues #1158 #1299

283
ThomasV 10 years ago
parent
commit
e9523f231b
  1. 2
      gui/qt/main_window.py
  2. 2
      gui/qt/util.py

2
gui/qt/main_window.py

@ -1706,9 +1706,9 @@ class ElectrumWindow(QMainWindow):
name = self.wallet.get_account_name(k)
c, u, x = self.wallet.get_account_balance(k)
account_item = QTreeWidgetItem([ name, '', self.format_amount(c + u + x), ''])
l.addTopLevelItem(account_item)
account_item.setExpanded(self.accounts_expanded.get(k, True))
account_item.setData(0, Qt.UserRole, k)
l.addTopLevelItem(account_item)
else:
account_item = l
sequences = [0,1] if account.has_change() else [0]

2
gui/qt/util.py

@ -335,6 +335,8 @@ class MyTreeWidget(QTreeWidget):
self.is_edit = False
def label_changed(self, item, column):
if column != self.edit_column:
return
if self.is_edit:
return
self.is_edit = True

Loading…
Cancel
Save