Show
Ignore:
Timestamp:
05/01/06 20:29:12 (3 years ago)
Author:
asterix
Message:

be sure that transport is really removed before we start to remove its contacts.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/roster_window.py

    r6242 r6261  
    11431143                        # remove transport from treeview 
    11441144                        self.remove_contact(contact, account) 
    1145                         # remove transport's contacts from treeview 
    1146                         jid_list = gajim.contacts.get_jid_list(account) 
    1147                         for jid in jid_list: 
    1148                                 if jid.endswith('@' + contact.jid): 
    1149                                         c = gajim.contacts.get_first_contact_from_jid(account, jid) 
    1150                                         gajim.log.debug( 
    1151                                                 'Removing contact %s due to unregistered transport %s'\ 
    1152                                                 % (jid, contact.jid)) 
    1153                                         gajim.connections[account].unsubscribe(c.jid) 
    1154                                         # Transport contacts can't have 2 resources 
    1155                                         gajim.contacts.remove_jid(account, c.jid) 
    1156                                         self.remove_contact(c, account) 
    11571145                        gajim.contacts.remove_jid(account, contact.jid) 
    11581146                        gajim.contacts.remove_contact(account, contact)