Commit 0cec5df0 authored by steve-e's avatar steve-e

Remove duplicated function.

Fix potential tb on usage of non-existing var.
parent f6c819ab
......@@ -1292,10 +1292,6 @@ class AccountsWindow:
def on_close_button_clicked(self, widget):
self.window.destroy()
def on_accounts_window_destroy(self, widget):
if gajim.interface.instances.has_key('accounts'):
del gajim.interface.instances['accounts']
def __init__(self):
self.xml = gtkgui_helpers.get_glade('accounts_window.glade')
self.window = self.xml.get_widget('accounts_window')
......@@ -1741,7 +1737,7 @@ class AccountsWindow:
# ServiceCache object keep old property account
if hasattr(gajim.connections[old_name], 'services_cache'):
gajim.connections[self.account].services_cache.account = new_name
gajim.connections[old_name].services_cache.account = new_name
del gajim.interface.instances[old_name]
del gajim.interface.minimized_controls[old_name]
del gajim.nicks[old_name]
......
Markdown is supported
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