resset connection type when we go offline

This commit is contained in:
Yann Leboulanger 2006-04-11 18:54:28 +00:00
parent 4e2f02c725
commit 19cb8269c0
1 changed files with 3 additions and 1 deletions

View File

@ -2039,7 +2039,9 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
model[accountIter][0] = self.jabber_state_images['16'][status] model[accountIter][0] = self.jabber_state_images['16'][status]
if status == 'offline': if status == 'offline':
if accountIter: if accountIter:
model[accountIter][6] = None model[accountIter][C_SECPIXBUF] = None
if gajim.con_types.has_key(account):
gajim.con_types[account] = None
for jid in gajim.contacts.get_jid_list(account): for jid in gajim.contacts.get_jid_list(account):
lcontact = gajim.contacts.get_contact(account, jid) lcontact = gajim.contacts.get_contact(account, jid)
lcontact_copy = [] lcontact_copy = []