From: Ferdi van der Werf Date: Sun, 8 Apr 2012 23:26:37 +0000 (+0200) Subject: Probably fixes #17 issue X-Git-Tag: RC3~90^2~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=956b6ad33d3fb38daac81f0c6df65ef714c53cea;p=cura.git Probably fixes #17 issue On OSX spp.Destroy() causes an segfault, sizer.Remove(app) removes app from the form but tries to call spp.Destroy() afterwards. By hiding and detaching I created a workaround for the OSX problem. This solution needs testing on Windows and Linux. --- diff --git a/Cura/gui/mainWindow.py b/Cura/gui/mainWindow.py index 05170c85..8275272e 100644 --- a/Cura/gui/mainWindow.py +++ b/Cura/gui/mainWindow.py @@ -302,10 +302,10 @@ class mainWindow(configBase.configWindowBase): newSize = self.GetSize(); newSize.IncBy(0, -spp.GetSize().GetHeight()) self.SetSize(newSize) - self.sizer.Remove(spp) - spp.Destroy() + spp.Show(False) + self.sizer.Detach(spp) for spp in self.progressPanelList: - self.sizer.Remove(spp) + self.sizer.Detach(spp) i = 2 for spp in self.progressPanelList: self.sizer.Add(spp, (i,0), span=(1,4), flag=wx.EXPAND)