changeset 1e79c3861f98 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=1e79c3861f98
description: prevent traceback when closing single message window. Fixes #5292

diffstat:

 src/dialogs.py |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 5edf059fa111 -r 1e79c3861f98 src/dialogs.py
--- a/src/dialogs.py    Tue Sep 29 11:08:42 2009 +0200
+++ b/src/dialogs.py    Tue Sep 29 13:51:20 2009 +0200
@@ -2505,6 +2505,9 @@
                self.instances.remove(self)
                c = 
gajim.contacts.get_contact_with_highest_priority(self.account,
                        self.from_whom)
+               if not c:
+                       # Groupchat is maybe already destroyed
+                       return
                if c.is_groupchat() and not self.from_whom in \
                gajim.interface.minimized_controls[self.account] and 
self.action == \
                'receive' and gajim.events.get_nb_roster_events(self.account,
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to