cleanups
This commit is contained in:
parent
71271279d0
commit
1ed82a95d6
|
@ -234,6 +234,7 @@ class RosterWindow:
|
|||
|
||||
def draw_contact(self, jid, account, selected = False, focus = False):
|
||||
'''draw the correct state image, name and avatar'''
|
||||
# focus is about if the roster window has toplevel-focus or not
|
||||
model = self.tree.get_model()
|
||||
iters = self.get_contact_iter(jid, account)
|
||||
if len(iters) == 0:
|
||||
|
@ -2465,6 +2466,7 @@ _('If "%s" accepts this request you will know his or her status.') %jid)
|
|||
return
|
||||
contact = model[selected_iter]
|
||||
self._last_selected_contact = (contact[C_JID], contact[C_ACCOUNT])
|
||||
# FIXME: we first set last selected contact and then test if contact??
|
||||
if contact[C_TYPE] != 'contact':
|
||||
return
|
||||
self.draw_contact(contact[C_JID], contact[C_ACCOUNT], selected = True)
|
||||
|
|
Loading…
Reference in New Issue