Changeset 6342

Show
Ignore:
Timestamp:
05/19/06 04:42:54 (3 years ago)
Author:
jim++
Message:

Do not try to remove item from roster if contact is not in roster. Fixes #1967.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gajim.py

    r6339 r6342  
    11091109                                contact = gajim.contacts.get_contact_with_highest_priority(account, 
    11101110                                        jid) 
    1111                                 self.roster.really_remove_contact(contact, account) 
     1111                                if contact:      
     1112                                        self.roster.really_remove_contact(contact, account) 
    11121113                self.redraw_roster_systray(account, jid, typ) 
    11131114 
     
    11231124                                contact = gajim.contacts.get_contact_with_highest_priority(account, 
    11241125                                        jid) 
    1125                                 self.roster.really_remove_contact(contact, account) 
     1126                                if contact:              
     1127                                        self.roster.really_remove_contact(contact, account) 
    11261128                self.redraw_roster_systray(account, jid, event[0]) 
    11271129