fix an undefined variable when scrolling the roster

This commit is contained in:
Brendan Taylor 2008-05-14 01:47:10 +00:00
parent 8d7750b203
commit 63d6c2875e
1 changed files with 5 additions and 4 deletions

View File

@ -316,10 +316,11 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
# we curently see contact in our roster # we curently see contact in our roster
# show and select his line in roster # show and select his line in roster
# do not change selection while DND'ing # do not change selection while DND'ing
self.tree.expand_row(path[0:1], False) tree = gajim.interface.roster.tree
self.tree.expand_row(path[0:2], False) tree.expand_row(path[0:1], False)
self.tree.scroll_to_cell(path) tree.expand_row(path[0:2], False)
self.tree.set_cursor(path) tree.scroll_to_cell(path)
tree.set_cursor(path)
else: else:
if no_queue: # We didn't have a queue: we change icons if no_queue: # We didn't have a queue: we change icons
gajim.interface.roster.draw_contact(jid, self.conn.name) gajim.interface.roster.draw_contact(jid, self.conn.name)