Show
Ignore:
Timestamp:
05/24/06 20:17:51 (3 years ago)
Author:
dkirov
Message:

prevent loop when adding metacontact to roster
(fixes #1953 and maybe #1991)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.10/src/roster_window.py

    r6261 r6354  
    242242                family = gajim.contacts.get_metacontacts_family(account, jid) 
    243243 
    244                 shown_family = [] # family members that are in roster. 
     244                # family members that are in roster and belong to the same account. 
     245                shown_family = []  
    245246                if family: 
    246247                        for data in family: 
     248                                _account = data['account'] 
     249                                if _account != account: 
     250                                        continue 
    247251                                _jid = data['jid'] 
    248                                 _account = data['account'] 
     252                                 
    249253                                if self.get_contact_iter(_jid, _account): 
    250254                                        shown_family.append(data)