Always get the activity list from the shell view, not sometimes from the model

This commit is contained in:
Dan Winship 2007-08-08 09:27:37 -04:00
parent 2485e15030
commit 6ca80a7146

View File

@ -88,9 +88,9 @@ class BuddyMenu(Palette):
self.append_menu_item(menu_item) self.append_menu_item(menu_item)
menu_item.show() menu_item.show()
activity = shell_model.get_home().get_current_activity() activity = self._shell.get_current_activity()
if activity != None: if activity != None:
activity_ps = pservice.get_activity(activity.get_activity_id()) activity_ps = pservice.get_activity(activity.get_id())
# FIXME check that the buddy is not in the activity already # FIXME check that the buddy is not in the activity already