changeset 7905d12c7bf0 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=7905d12c7bf0
description: prevent traceback when changing resource of a control when there 
is no event for the account at all. Fixes #5375

diffstat:

 src/common/events.py |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r ab1f9ab7cc6c -r 7905d12c7bf0 src/common/events.py
--- a/src/common/events.py      Thu Oct 29 16:46:36 2009 +0100
+++ b/src/common/events.py      Fri Oct 30 09:44:40 2009 +0100
@@ -163,6 +163,8 @@
                del self._events[account][jid]
 
        def change_jid(self, account, old_jid, new_jid):
+               if account not in self._events:
+                       return
                if old_jid not in self._events[account]:
                        return
                if new_jid in self._events[account]:
_______________________________________________
Commits mailing list
Commits@gajim.org
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to