From 3227d676669f66c8b8be640f3ea39d956e286da5 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sun, 24 Jul 2005 15:42:19 +0000 Subject: [PATCH] try to prevent a TB --- src/roster_window.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 1dcc0851c..3045ef9ec 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1303,9 +1303,10 @@ _('If "%s" accepts this request you will know his status.') %jid).get_response() model = self.tree.get_model() accountIter = self.get_account_iter(account) if accountIter: - model.set_value(accountIter, 0, self.jabber_state_images[status]) + model[accountIter][0] = self.jabber_state_images[status] if status == 'offline': - model[accountIter][6] = None + if accountIter: + model[accountIter][6] = None for jid in gajim.contacts[account]: luser = gajim.contacts[account][jid] luser_copy = []