diff options
author | Dan Williams <dcbw@redhat.com> | 2007-04-09 20:05:32 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-04-09 20:05:32 (GMT) |
commit | 76a0f45aa82ba49138449826ea7b006c784eaa62 (patch) | |
tree | a621a1307bc04b406acbb2452439dd25a5807688 /shell/model/BuddyModel.py | |
parent | 4cf8f321f03317c6156e8fe8544b4b3a9d16bb7a (diff) |
More new PS fixes
Diffstat (limited to 'shell/model/BuddyModel.py')
-rw-r--r-- | shell/model/BuddyModel.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/model/BuddyModel.py b/shell/model/BuddyModel.py index 9894dde..f7a8f38 100644 --- a/shell/model/BuddyModel.py +++ b/shell/model/BuddyModel.py @@ -52,7 +52,10 @@ class BuddyModel(gobject.GObject): if not buddy: self._name = name # FIXME: use public key, not name - buddy = self._pservice.get_buddy_by_name(self._name) + for iter_buddy in self._pservice.get_buddies(): + if iter_buddy.props.nick == name: + buddy = iter_buddy + break # If successful, copy properties from the PS buddy object if buddy: |