# HG changeset patch
# User Laurent Bessard
# Date 1367496005 -7200
# Node ID 43739c16a002cebcb48c55a204a5a06bc7ebc348
# Parent  16cc3c42e413359c1ac578a10cf88a9b32d065f2
Fixed bug when closing Beremiz frame

diff -r 16cc3c42e413 -r 43739c16a002 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()