Changeset 2941

Show
Ignore:
Timestamp:
08/10/05 13:52:37 (3 years ago)
Author:
asterix
Message:

we can now create a new account

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/config.py

    r2917 r2941  
    13431343                #if we need to register a new account 
    13441344                if new_account: 
     1345                        gajim.events_for_ui[name] = [] 
    13451346                        con.new_account(name, config) 
    13461347                        return 
  • trunk/src/gajim.py

    r2930 r2941  
    770770 
    771771        def handle_event_stanza_arrived(self, account, stanza): 
     772                if not self.windows.has_key(account): 
     773                        return 
    772774                if self.windows[account].has_key('xml_console'): 
    773775                        self.windows[account]['xml_console'].print_stanza(stanza, 'incoming') 
    774776 
    775777        def handle_event_stanza_sent(self, account, stanza): 
     778                if not self.windows.has_key(account): 
     779                        return 
    776780                if self.windows[account].has_key('xml_console'): 
    777781                        self.windows[account]['xml_console'].print_stanza(stanza, 'outgoing') 
     
    966970                                if gajim.socks5queue.connected: 
    967971                                        gajim.socks5queue.process(0.01) 
     972                        for account in gajim.events_for_ui: #when we create a new account we don't have gajim.connection 
    968973                                while len(gajim.events_for_ui[account]): 
    969974                                        gajim.mutex_events_for_ui.lock(self.exec_event, account)