Fix Friends view buddy removal

This commit is contained in:
Dan Williams 2007-05-14 13:04:59 -04:00
parent c84e21aa9e
commit b99e149d23

View File

@ -69,10 +69,10 @@ class FriendsBox(hippo.CanvasBox):
self._buddies[buddy.props.key] = icon
def remove_buddy(self, buddy):
if not self._buddies.has_key(buddy.get_key()):
if not self._buddies.has_key(buddy.props.key):
return
self.remove(self._buddies[buddy.get_key()])
self.remove(self._buddies[buddy.props.key])
def clear(self):
for item in self.get_children():