Fixed bug when right click on ProjectTree project item
authorLaurent Bessard
Thu, 18 Apr 2013 11:56:01 +0200
changeset 1038 1923a69482f8
parent 1037 978b14147e21
child 1039 7bd88ac7b871
Fixed bug when right click on ProjectTree project item
Beremiz.py
--- a/Beremiz.py	Thu Apr 18 10:21:29 2013 +0200
+++ b/Beremiz.py	Thu Apr 18 11:56:01 2013 +0200
@@ -1027,11 +1027,13 @@
             confnode_menu.Destroy()
             
             event.Skip()
-        else:
+        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"):
                 IDEFrame.OnProjectTreeRightUp(self, event)
+        else:
+            IDEFrame.OnProjectTreeRightUp(self, event)
     
     def OnProjectTreeItemActivated(self, event):
         selected = event.GetItem()