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:
parent
2d3076a151
commit
a16eedff46
@ -40,7 +40,7 @@ class ToolbarButton(ToolButton):
|
|||||||
|
|
||||||
def __hierarchy_changed_cb(self, tool_button, previous_toplevel):
|
def __hierarchy_changed_cb(self, tool_button, previous_toplevel):
|
||||||
if hasattr(self.parent, 'owner'):
|
if hasattr(self.parent, 'owner'):
|
||||||
if self.page_widget:
|
if self.page_widget and previous_toplevel is None:
|
||||||
self._unparent()
|
self._unparent()
|
||||||
self.parent.owner.pack_start(self.page_widget)
|
self.parent.owner.pack_start(self.page_widget)
|
||||||
self.set_expanded(False)
|
self.set_expanded(False)
|
||||||
|
Loading…
Reference in New Issue
Block a user