From 229793e9f0b600da7a5c6bfd8b92de7925039ecf Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 21 Sep 2006 15:02:46 +0200 Subject: [PATCH] Adapt to API change --- 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 7c20f72d..3658f87d 100644 --- a/shell/view/BuddyMenu.py +++ b/shell/view/BuddyMenu.py @@ -32,9 +32,9 @@ class BuddyMenu(Menu): icon = IconItem(icon_name='stock-chat') self.add_action(icon, -1) - activity = shell_model.get_current_activity() - if activity != None: - activity_ps = pservice.get_activity(activity.get_id()) + activity_id = shell_model.get_current_activity() + if activity_id != None: + activity_ps = pservice.get_activity(activity_id) # FIXME check that the buddy is not in the activity already