Commit 1a3696a0 authored by nkour's avatar nkour
Browse files

we no longer keep xml_console_window forever in me. we allocate on demand

parent 2f9b0eab
......@@ -1400,6 +1400,7 @@ class XMLConsoleWindow:
title = _('XML Console')
self.window.set_title(title)
self.window.show_all()
self.xml.signal_autoconnect(self)
......
......@@ -1799,10 +1799,6 @@ class Interface:
# get instances for windows/dialogs that will show_all()/hide()
self.instances['file_transfers'] = dialogs.FileTransfersWindow()
for account in gajim.connections:
self.instances[account]['xml_console'] = dialogs.XMLConsoleWindow(
account)
gobject.timeout_add(100, self.autoconnect)
gobject.timeout_add(200, self.process_connections)
......
......@@ -549,7 +549,8 @@ class RosterWindow:
if gajim.interface.instances[account].has_key('xml_console'):
gajim.interface.instances[account]['xml_console'].window.present()
else:
gajim.interface.instances[account]['xml_console'].window.show_all()
gajim.interface.instances[account]['xml_console'] = \
dialogs.XMLConsoleWindow(account)
def on_set_motd_menuitem_activate(self, widget, account):
server = gajim.config.get_per('accounts', account, 'hostname')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment