From 84d34716134a71bfd53af2b16712068556c45881 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 10 Jan 2007 15:30:21 +0100 Subject: [PATCH] Fix to follow the new home api --- shell/view/BuddyMenu.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/view/BuddyMenu.py b/shell/view/BuddyMenu.py index a020a59b..82e58c24 100644 --- a/shell/view/BuddyMenu.py +++ b/shell/view/BuddyMenu.py @@ -88,9 +88,9 @@ class BuddyMenu(Menu): icon = CanvasIcon(icon_name='stock-add') self.add_action(icon, BuddyMenu.ACTION_MAKE_FRIEND) - activity_id = shell_model.get_current_activity() - if activity_id != None: - activity_ps = pservice.get_activity(activity_id) + activity = shell_model.get_home().get_current_activity() + if activity != None: + activity_ps = pservice.get_activity(activity.get_id()) # FIXME check that the buddy is not in the activity already