lpcmanager

Fixed closing of IDE frame leading to exception.
revamp
2018-02-13, Edouard Tisserant
14b468ab23c2
Parents d1c8a008e121
Children 0ab9ea0bc3b8
Fixed closing of IDE frame leading to exception.
--- a/LPCBeremiz.py Tue Feb 13 14:54:22 2018 +0100
+++ b/LPCBeremiz.py Tue Feb 13 15:06:24 2018 +0100
@@ -73,15 +73,11 @@
wx.Frame.Show(self)
def OnCloseFrame(self, event):
- global frame
-
if self.CheckSaveBeforeClosing(_("Close Application")):
- frame.Hide()
+ wx.Frame.Hide(self)
self.CTR.ResetAppFrame(self.lpcberemiz_cmd_pipe)
- if self.CTR.OnlineMode == 0:
- self.CTR._SetConnector(None, False)
self.CTR.KillDebugThread()
self.KillLocalRuntime()