Close tube after the activity window is closed #1296

This commit is contained in:
Tomeu Vizoso 2009-09-07 13:17:57 +02:00
parent db77ed8ab3
commit df89c1bf0b

View File

@ -768,17 +768,18 @@ class Activity(Window, gtk.Container):
self._show_keep_failed_dialog() self._show_keep_failed_dialog()
return False return False
if self.shared_activity:
self.shared_activity.leave()
self._closing = True self._closing = True
return True return True
def _complete_close(self): def _complete_close(self):
self._cleanup_jobject()
self.destroy() self.destroy()
if self.shared_activity:
self.shared_activity.leave()
self._cleanup_jobject()
# Make the exported object inaccessible # Make the exported object inaccessible
dbus.service.Object.remove_from_connection(self._bus) dbus.service.Object.remove_from_connection(self._bus)