Some activities segfault when closing, OLPC #11201

TurtleArt and Abacus are two known candidates

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
This commit is contained in:
Simon Schampijer 2011-09-07 18:20:01 +02:00
parent 2d3076a151
commit a16eedff46

View File

@ -40,7 +40,7 @@ class ToolbarButton(ToolButton):
def __hierarchy_changed_cb(self, tool_button, previous_toplevel):
if hasattr(self.parent, 'owner'):
if self.page_widget:
if self.page_widget and previous_toplevel is None:
self._unparent()
self.parent.owner.pack_start(self.page_widget)
self.set_expanded(False)