parent
89677c47f7
commit
e9523f231b
|
@ -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]
|
||||
|
|
|
@ -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…
Reference in New Issue