fix issue with task rename if "Name" column label is translated into
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 14 Dec 2016 12:36:04 +0300
changeset 1604 7f98c091be56
parent 1603 18279f12a6be
child 1605 0b6b60241230
fix issue with task rename if "Name" column label is translated into
other language
editors/ResourceEditor.py
--- a/editors/ResourceEditor.py	Wed Dec 14 12:31:06 2016 +0300
+++ b/editors/ResourceEditor.py	Wed Dec 14 12:36:04 2016 +0300
@@ -434,7 +434,7 @@
 
     def OnTasksGridCellChange(self, event):
         row, col = event.GetRow(), event.GetCol()
-        if self.TasksTable.GetColLabelValue(col) == "Name":
+        if self.TasksTable.GetColLabelValue(col, False) == "Name":
             tasklist = [name for name in self.TaskList.split(",") if name != ""]
             for i in xrange(self.TasksTable.GetNumberRows()):
                 task = self.TasksTable.GetValueByName(i, "Name")