Fix Friends view buddy removal
This commit is contained in:
parent
c84e21aa9e
commit
b99e149d23
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user