Changeset 9642

Show
Ignore:
Timestamp:
05/15/08 06:03:19 (2 months ago)
Author:
bct
Message:

fix tb when closing chat control after e2e ended

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/gajim.py

    r9638 r9642  
    20192019                        was_encrypted = session.enable_encryption 
    20202020                        ctrl = session.control 
     2021                        jid = str(jid) 
    20212022 
    20222023                        session.acknowledge_termination() 
    2023                         gajim.connections[account].delete_session(str(jid), session.thread_id) 
     2024                        gajim.connections[account].delete_session(jid, session.thread_id) 
    20242025 
    20252026                        if ctrl: 
    2026                                 new_sess = gajim.connections[account].make_new_session(str(jid)) 
     2027                                # replace the old session in this control with a new one 
     2028                                new_sess = gajim.connections[account].make_new_session(jid) 
     2029                                win = ctrl.parent_win 
     2030 
    20272031                                ctrl.set_session(new_sess) 
    2028                                 gajim.connections[account].delete_session(str(jid)
     2032                                gajim.connections[account].delete_session(jid
    20292033                                        session.thread_id) 
     2034 
     2035                                if not jid in win._controls[account]: 
     2036                                        jid = gajim.get_jid_without_resource(jid) 
     2037 
     2038                                del win._controls[account][jid][session.thread_id] 
     2039                                win._controls[account][jid][new_sess.thread_id] = ctrl 
    20302040 
    20312041                                if was_encrypted: