From df89c1bf0b1f0425cb6a6621dbe65770a7856bb1 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Mon, 7 Sep 2009 13:17:57 +0200 Subject: [PATCH] Close tube after the activity window is closed #1296 --- src/sugar/activity/activity.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py index 5125bafb..180742cb 100644 --- a/src/sugar/activity/activity.py +++ b/src/sugar/activity/activity.py @@ -768,17 +768,18 @@ class Activity(Window, gtk.Container): self._show_keep_failed_dialog() return False - if self.shared_activity: - self.shared_activity.leave() - self._closing = True return True def _complete_close(self): - self._cleanup_jobject() self.destroy() + if self.shared_activity: + self.shared_activity.leave() + + self._cleanup_jobject() + # Make the exported object inaccessible dbus.service.Object.remove_from_connection(self._bus)