Fix bug when begin editing item in project tree
authorlaurent
Wed, 23 May 2012 11:44:55 +0200
changeset 747 e7fca1f93de1
parent 746 2e09777a40d3
child 748 5e69e2738957
child 749 050f5a001826
Fix bug when begin editing item in project tree
Beremiz.py
--- a/Beremiz.py	Wed May 23 10:37:43 2012 +0200
+++ b/Beremiz.py	Wed May 23 11:44:55 2012 +0200
@@ -1861,7 +1861,7 @@
     
     def OnProjectTreeItemBeginEdit(self, event):
         selected = event.GetItem()
-        if self.ProjectTree.GetPyData(selected)["type"] in ITEM_CONFNODE:
+        if self.ProjectTree.GetPyData(selected)["type"] == ITEM_CONFNODE:
             event.Veto()
         else:
             IDEFrame.OnProjectTreeItemBeginEdit(self, event)