Fixed bug when closing Beremiz frame
authorLaurent Bessard
Thu, 02 May 2013 14:00:05 +0200
changeset 1088 43739c16a002
parent 1087 16cc3c42e413
child 1089 5cd1f8df71aa
Fixed bug when closing Beremiz frame
Beremiz.py
--- a/Beremiz.py	Thu May 02 13:30:24 2013 +0200
+++ b/Beremiz.py	Thu May 02 14:00:05 2013 +0200
@@ -658,8 +658,8 @@
             return IDEFrame.LoadTab(self, notebook, page_infos)
     
     def OnCloseFrame(self, event):
-        self.LogConsole.Unbind(wx.EVT_KILL_FOCUS, self.OnLogConsoleFocusChanged)
-        self.LogConsole.Unbind(wx.stc.EVT_STC_UPDATEUI, self.OnLogConsoleUpdateUI)
+        self.LogConsole.Unbind(wx.EVT_KILL_FOCUS)
+        self.LogConsole.Unbind(wx.stc.EVT_STC_UPDATEUI)
         if self.CTR is None or self.CheckSaveBeforeClosing(_("Close Application")):
             if self.CTR is not None:
                 self.CTR.KillDebugThread()