1
0

simplify get_label

This commit is contained in:
ThomasV
2015-12-15 12:52:30 +01:00
parent 2990b1e865
commit 9d3162b1a1
10 changed files with 12 additions and 42 deletions

View File

@@ -383,12 +383,6 @@ class MyTreeWidget(QTreeWidget):
key = str(item.data(0, Qt.UserRole).toString())
text = unicode(item.text(column))
self.parent.wallet.set_label(key, text)
if text:
item.setForeground(column, QBrush(QColor('black')))
else:
text = self.parent.wallet.get_default_label(key)
item.setText(column, text)
item.setForeground(column, QBrush(QColor('gray')))
self.parent.history_list.update()
self.parent.update_completions()