1
0

fix: always use UserRole to store the key

This commit is contained in:
ThomasV
2015-04-04 21:38:21 +02:00
parent 3a2e2702bb
commit ff152141ae
3 changed files with 13 additions and 13 deletions

View File

@@ -291,7 +291,9 @@ class MyTreeWidget(QTreeWidget):
break
self.emit(SIGNAL('customContextMenuRequested(const QPoint&)'), QPoint(50, i*5 + j - 1))
def edit_label(self, item, column):
def edit_label(self, item, column=None):
if column is None:
column = self.edit_column
if column==self.edit_column and item.isSelected():
text = unicode(item.text(column))
key = str(item.data(0, Qt.UserRole).toString())