Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2011-09-07 16:20:01 (GMT)
committer Simon Schampijer <simon@schampijer.de>2011-09-07 16:20:01 (GMT)
commita16eedff46ebbf34ab1f4f0b0638f0c742f3a940 (patch)
tree4d6307a3377e0aaab01edefec2417028d9e55a79
parent2d3076a1510c0fb3b978b1355e02c0169a6499f0 (diff)
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>
-rw-r--r--src/sugar/graphics/toolbarbox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sugar/graphics/toolbarbox.py b/src/sugar/graphics/toolbarbox.py
index 2f455f5..60e030e 100644
--- a/src/sugar/graphics/toolbarbox.py
+++ b/src/sugar/graphics/toolbarbox.py
@@ -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)