Bug with TypesTree Contextual Item Delete item disappear fixed
authorlbessard
Wed, 18 Mar 2009 10:17:48 +0100
changeset 324 9f240641e3f0
parent 323 fd3a3a002bce
child 325 0a58f1625b6e
Bug with TypesTree Contextual Item Delete item disappear fixed
Bug with Reset ToolBar on Selection on Windows fixed
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Tue Mar 17 16:14:13 2009 +0100
+++ b/PLCOpenEditor.py	Wed Mar 18 10:17:48 2009 +0100
@@ -1655,7 +1655,6 @@
             new_id = wx.NewId()
             AppendMenu(menu, help='', id=new_id, kind=wx.ITEM_NORMAL, text="Rename")
             self.Bind(wx.EVT_MENU, self.OnRenamePouMenu, id=new_id)
-            self.PopupMenu(menu)
             new_id = wx.NewId()
             AppendMenu(menu, help='', id=new_id, kind=wx.ITEM_NORMAL, text="Delete")
             self.Bind(wx.EVT_MENU, self.OnRemovePouMenu, id=new_id)
@@ -2050,6 +2049,7 @@
         else:
             ToolBar = self.ToolBar
         if ToolBar:
+            ToolBar.ToggleTool(ID_PLCOPENEDITORTOOLBARSELECTION, False)
             ToolBar.ToggleTool(ID_PLCOPENEDITORTOOLBARSELECTION, True)
         
     def ResetToolToggle(self, id):