Fix ps buddy object usage

This commit is contained in:
Dan Williams 2007-05-02 22:30:59 -04:00
parent 3f480c1495
commit e4be6fc1ba

View File

@ -59,14 +59,14 @@ class FriendsBox(hippo.CanvasBox):
self._active_activity_changed_cb)
def add_buddy(self, buddy):
if self._buddies.has_key(buddy.get_key()):
if self._buddies.has_key(buddy.props.key):
return
model = BuddyModel(buddy=buddy)
icon = FriendIcon(self._shell, self._popup_context, model)
self.append(icon)
self._buddies[buddy.get_key()] = icon
self._buddies[buddy.props.key] = icon
def remove_buddy(self, buddy):
if not self._buddies.has_key(buddy.get_key()):