diff --git a/gui/mainFrame.py b/gui/mainFrame.py index 2def00901..cb90ce0cc 100644 --- a/gui/mainFrame.py +++ b/gui/mainFrame.py @@ -196,7 +196,6 @@ class MainFrame(wx.Frame): def ShowUpdateBox(self, release): dlg = UpdateDialog(self, release) dlg.ShowModal() - dlg.Destroy() def LoadPreviousOpenFits(self): sFit = service.Fit.getInstance() diff --git a/gui/updateDialog.py b/gui/updateDialog.py index a01c5a5bc..7dfe73790 100644 --- a/gui/updateDialog.py +++ b/gui/updateDialog.py @@ -107,7 +107,7 @@ class UpdateDialog(wx.Dialog): self.Centre( wx.BOTH ) def OnClose(self, e): - self.Destroy() + self.Close() def SuppressChange(self, e): if (self.supressCheckbox.IsChecked()):