Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-04-11 02:22:58 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-04-11 02:22:58 (GMT)
commit117934f7098652ebc92262356802d920bf4b92c5 (patch)
tree4fd13d8087cb7c18d89cad57da4c699db621850b /shell
parentc85985b55b722ff21c9d83077759d1d92379a2c5 (diff)
Fix making someone your friend
Diffstat (limited to 'shell')
-rw-r--r--shell/view/BuddyIcon.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/shell/view/BuddyIcon.py b/shell/view/BuddyIcon.py
index 0d32eba..b35235c 100644
--- a/shell/view/BuddyIcon.py
+++ b/shell/view/BuddyIcon.py
@@ -50,12 +50,8 @@ class BuddyIcon(CanvasIcon):
if action == BuddyMenu.ACTION_REMOVE_FRIEND:
friends.remove(self._buddy)
- ps_buddy = self._buddy.get_buddy()
- if ps_buddy == None:
- return
-
if action == BuddyMenu.ACTION_INVITE:
activity = self._shell.get_current_activity()
- activity.invite(ps_buddy)
+ activity.invite(self._buddy)
elif action == BuddyMenu.ACTION_MAKE_FRIEND:
- friends.make_friend(ps_buddy)
+ friends.make_friend(self._buddy)