beremiz

Fixed bug when closing Beremiz frame

2013-05-03, Laurent Bessard
f4d08cea7774
Parents 5cd1f8df71aa
Children 5f612651d227
Fixed bug when closing Beremiz frame
  • +4 -2
    Beremiz.py
  • --- a/Beremiz.py Thu May 02 14:06:24 2013 +0200
    +++ b/Beremiz.py Fri May 03 11:10:15 2013 +0200
    @@ -658,8 +658,10 @@
    return IDEFrame.LoadTab(self, notebook, page_infos)
    def OnCloseFrame(self, event):
    - self.LogConsole.Unbind(wx.EVT_KILL_FOCUS)
    - self.LogConsole.Unbind(wx.stc.EVT_STC_UPDATEUI)
    + for evt_type in [wx.EVT_SET_FOCUS,
    + wx.EVT_KILL_FOCUS,
    + wx.stc.EVT_STC_UPDATEUI]:
    + self.LogConsole.Unbind(evt_type)
    if self.CTR is None or self.CheckSaveBeforeClosing(_("Close Application")):
    if self.CTR is not None:
    self.CTR.KillDebugThread()