--- 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):