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.
This commit is contained in:
Ferdi van der Werf 2012-04-09 01:26:37 +02:00
parent e2f4ce4ef6
commit 956b6ad33d

View File

@ -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)