Fixed bug when right click on ProjectTree project item
authorLaurent Bessard
Thu, 18 Apr 2013 12:14:05 +0200
changeset 1039 7bd88ac7b871
parent 1038 1923a69482f8
child 1040 af8a1aee3584
Fixed bug when right click on ProjectTree project item
Beremiz.py
--- a/Beremiz.py	Thu Apr 18 11:56:01 2013 +0200
+++ b/Beremiz.py	Thu Apr 18 12:14:05 2013 +0200
@@ -1027,7 +1027,7 @@
             confnode_menu.Destroy()
             
             event.Skip()
-        elif item_infos["type"] == ITEM_PROJECT:
+        elif item_infos["type"] != ITEM_PROJECT:
             parent = self.ProjectTree.GetItemParent(item)
             parent_name = self.ProjectTree.GetItemText(parent)
             if item_infos["type"] != ITEM_RESOURCE or parent_name == _("Resources"):