we can now create a new account
This commit is contained in:
parent
fc734097fe
commit
8393d9e5fd
|
@ -1342,6 +1342,7 @@ _('To change the account name, you must be disconnected.')).get_response()
|
||||||
self.plugin.register_handlers(con)
|
self.plugin.register_handlers(con)
|
||||||
#if we need to register a new account
|
#if we need to register a new account
|
||||||
if new_account:
|
if new_account:
|
||||||
|
gajim.events_for_ui[name] = []
|
||||||
con.new_account(name, config)
|
con.new_account(name, config)
|
||||||
return
|
return
|
||||||
# The account we add already exists on the server
|
# The account we add already exists on the server
|
||||||
|
|
|
@ -769,10 +769,14 @@ class Interface:
|
||||||
self.roster.popup_notification_windows.append(instance)
|
self.roster.popup_notification_windows.append(instance)
|
||||||
|
|
||||||
def handle_event_stanza_arrived(self, account, stanza):
|
def handle_event_stanza_arrived(self, account, stanza):
|
||||||
|
if not self.windows.has_key(account):
|
||||||
|
return
|
||||||
if self.windows[account].has_key('xml_console'):
|
if self.windows[account].has_key('xml_console'):
|
||||||
self.windows[account]['xml_console'].print_stanza(stanza, 'incoming')
|
self.windows[account]['xml_console'].print_stanza(stanza, 'incoming')
|
||||||
|
|
||||||
def handle_event_stanza_sent(self, account, stanza):
|
def handle_event_stanza_sent(self, account, stanza):
|
||||||
|
if not self.windows.has_key(account):
|
||||||
|
return
|
||||||
if self.windows[account].has_key('xml_console'):
|
if self.windows[account].has_key('xml_console'):
|
||||||
self.windows[account]['xml_console'].print_stanza(stanza, 'outgoing')
|
self.windows[account]['xml_console'].print_stanza(stanza, 'outgoing')
|
||||||
|
|
||||||
|
@ -965,6 +969,7 @@ class Interface:
|
||||||
gajim.connections[account].process(0.01)
|
gajim.connections[account].process(0.01)
|
||||||
if gajim.socks5queue.connected:
|
if gajim.socks5queue.connected:
|
||||||
gajim.socks5queue.process(0.01)
|
gajim.socks5queue.process(0.01)
|
||||||
|
for account in gajim.events_for_ui: #when we create a new account we don't have gajim.connection
|
||||||
while len(gajim.events_for_ui[account]):
|
while len(gajim.events_for_ui[account]):
|
||||||
gajim.mutex_events_for_ui.lock(self.exec_event, account)
|
gajim.mutex_events_for_ui.lock(self.exec_event, account)
|
||||||
gajim.mutex_events_for_ui.unlock()
|
gajim.mutex_events_for_ui.unlock()
|
||||||
|
|
Loading…
Reference in New Issue