Fix RunProfile window clean up
@@ -619,10 +619,11 @@ class TestRunnerPlugin(Plugin):
p = self._test_runner.get_profile(profile)
for child in self.config_sizer.GetChildren():
child.GetWindow().Hide()
- if wx.VERSION >= (3, 0, 3, ''): # DEBUG wxPhoenix #TODO fix BoxSizer
- self.config_sizer.RemoveChild(child.GetWindow())
- else:
- self.config_sizer.Remove(child.GetWindow())
+ # if wx.VERSION >= (3, 0, 3, ''): # DEBUG wxPhoenix #TODO fix BoxSizer
+ # self.config_sizer.RemoveChild(child.GetWindow())
+ # else:
+ # self.config_sizer.Remove(child.GetWindow())
+ self.config_sizer.Detach(child.GetWindow())
toolbar = p.get_toolbar(self.config_panel)
if toolbar:
