commit 18032fc4f67cf405dc5912084f17b3dd3f890263
parent 9bb44e4db3872fbc8b9739df1c21277af0896040
Author: ThomasV <thomasv@gitorious>
Date: Sun, 17 May 2015 12:48:17 +0200
treewidget: keep default label when editing
Diffstat:
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/gui/qt/util.py b/gui/qt/util.py
@@ -316,8 +316,6 @@ class MyTreeWidget(QTreeWidget):
text = unicode(item.text(column))
key = str(item.data(0, Qt.UserRole).toString())
self.is_edit = True
- if text == self.parent.wallet.get_default_label(key):
- item.setText(column, '')
item.setFlags(Qt.ItemIsEditable|Qt.ItemIsSelectable | Qt.ItemIsUserCheckable | Qt.ItemIsEnabled | Qt.ItemIsDragEnabled)
self.editItem(item, column)
item.setFlags(Qt.ItemIsSelectable | Qt.ItemIsUserCheckable | Qt.ItemIsEnabled | Qt.ItemIsDragEnabled)