try to prevent a TB

This commit is contained in:
Nikos Kouremenos 2005-07-24 15:42:19 +00:00
parent 713b996d2f
commit 3227d67666
1 changed files with 3 additions and 2 deletions

View File

@ -1303,9 +1303,10 @@ _('If "%s" accepts this request you will know his status.') %jid).get_response()
model = self.tree.get_model() model = self.tree.get_model()
accountIter = self.get_account_iter(account) accountIter = self.get_account_iter(account)
if accountIter: if accountIter:
model.set_value(accountIter, 0, self.jabber_state_images[status]) model[accountIter][0] = self.jabber_state_images[status]
if status == 'offline': if status == 'offline':
model[accountIter][6] = None if accountIter:
model[accountIter][6] = None
for jid in gajim.contacts[account]: for jid in gajim.contacts[account]:
luser = gajim.contacts[account][jid] luser = gajim.contacts[account][jid]
luser_copy = [] luser_copy = []