Show
Ignore:
Timestamp:
05/10/08 23:29:47 (7 months ago)
Author:
js
Message:

Store otr_userstates at the right place and create it the right way.
This fixes the crash when creating a new account, which made Gajim
unusable on systems where it never ran before.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/roster_window.py

    r9602 r9607  
    17771777                                # offline/invisible 
    17781778                                if status == 'offline' or status == 'invisible': 
    1779                                         ctx = gajim.otr_userstates[account].context_root 
     1779                                        ctx = gajim.connections[account].otr_userstates.context_root 
    17801780                                        while ctx is not None: 
    17811781                                                if ctx.msgstate == gajim.otr_module.OTRL_MSGSTATE_ENCRYPTED: 
    17821782                                                        disconnected = True 
    1783                                                         gajim.otr_module.otrl_message_disconnect(gajim.otr_userstates[account], 
     1783                                                        gajim.otr_module.otrl_message_disconnect(gajim.connections[account].otr_userstates, 
    17841784                                                                        (gajim.otr_ui_ops, 
    17851785                                                                        {'account':account,'urgent':True}), ctx.accountname,