Show
Ignore:
Timestamp:
06/27/08 01:37:12 (5 months ago)
Author:
bct
Message:

win.get_controls() isn't needed anymore

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/roster_window.py

    r9846 r9847  
    18131813                        if contact.resource != '': 
    18141814                                name += '/' + contact.resource 
    1815                          
     1815 
    18161816                        # Remove resource when going offline 
    18171817                        if show in ('offline', 'error') and \ 
     
    18221822                                        win = gajim.interface.msg_win_mgr.get_window(jid_with_resource, 
    18231823                                                account) 
    1824                                         for ctrl in win.get_controls(jid_with_resource, account): 
     1824                                        ctrl = win.get_control(jid_with_resource, account) 
     1825                                        if ctrl: 
    18251826                                                ctrl.update_ui() 
    18261827                                                win.redraw_tab(ctrl) 
     
    18371838                        uf_show = helpers.get_uf_show(show) 
    18381839 
    1839                         for ctrl in win.get_controls(contact.jid, account): 
     1840                        ctrl = win.get_control(contact.jid, account) 
     1841                        if ctrl: 
    18401842                                ctrl.contact = gajim.contacts.get_contact_with_highest_priority( 
    18411843                                        account, contact.jid)