From a6b1307eb4452fdd092a5218a825c1fe0fae5cb0 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 22 May 2006 16:45:50 -0400 Subject: [PATCH] Fix tab focus stuff --- sugar/shell/shell.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sugar/shell/shell.py b/sugar/shell/shell.py index 4d16a45d..394efde4 100755 --- a/sugar/shell/shell.py +++ b/sugar/shell/shell.py @@ -249,8 +249,9 @@ class ActivityContainer(dbus.service.Object): if self.current_activity != None: if self.has_activity(self.current_activity): self.current_activity.peer_service.lost_focus(reply_handler = self.__focus_reply_cb, error_handler = self.__focus_error_cb) - - self.current_activity = new_activity + + if self.has_activity(new_activity): + self.current_activity = new_activity if self.current_activity != None: if self.has_activity(self.current_activity):