From a743fd2669042ef26b88081b5edf731fc4672aa3 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 15 Jul 2005 17:10:03 +0000 Subject: [PATCH] do not traceback if we have no systray capabilities --- src/config.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/config.py b/src/config.py index b9a872a8a..90be9472b 100644 --- a/src/config.py +++ b/src/config.py @@ -1166,14 +1166,18 @@ _('To change the account name, it must be disconnected.')).get_response() gajim.encrypted_chats[name] = gajim.encrypted_chats[self.account] gajim.last_message_time[name] = \ gajim.last_message_time[self.account] + #upgrade account variable in opened windows for kind in ['infos', 'chats', 'gc', 'gc_config']: for j in self.plugin.windows[name][kind]: self.plugin.windows[name][kind][j].account = name + #upgrade account in systray - for list in self.plugin.systray.jids: - if list[0] == self.account: - list[0] = name + if hasattr(self.plugin, 'systray'): + for list in self.plugin.systray.jids: + if list[0] == self.account: + list[0] = name + del self.plugin.windows[self.account] del self.plugin.queues[self.account] del self.plugin.nicks[self.account]