Fixed bug when closing Beremiz
authorLaurent Bessard
Fri, 05 Apr 2013 08:11:27 +0200
changeset 1019 e5686874eaef
parent 1018 6b7ba640f49e
child 1020 2d20f25cd39f
Fixed bug when closing Beremiz
Beremiz.py
IDEFrame.py
--- a/Beremiz.py	Fri Apr 05 00:56:54 2013 +0200
+++ b/Beremiz.py	Fri Apr 05 08:11:27 2013 +0200
@@ -567,7 +567,7 @@
         InspectionTool().Show(wnd, True)
 
     def OnLogConsoleFocusChanged(self, event):
-        if self:
+        if self.EditMenu:
             self.RefreshEditMenu()
         event.Skip()
 
--- a/IDEFrame.py	Fri Apr 05 00:56:54 2013 +0200
+++ b/IDEFrame.py	Fri Apr 05 08:11:27 2013 +0200
@@ -905,7 +905,8 @@
             wx.TheClipboard.SetData(data)
             wx.TheClipboard.Flush()
             wx.TheClipboard.Close()
-        self.RefreshEditMenu()
+        if self.EditMenu:
+            self.RefreshEditMenu()
 
     def GetDrawingMode(self):
         return self.DrawingMode