fix account renaming issues #1158 #1299

This commit is contained in:
ThomasV 2015-08-17 12:49:04 +02:00
parent 89677c47f7
commit e9523f231b
2 changed files with 3 additions and 1 deletions

View File

@ -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]

View File

@ -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