From c2e15ae9d2e8e516a2776e3a9a08a344d7206d90 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 29 Sep 2009 13:51:20 +0200 Subject: [PATCH] prevent traceback when closing single message window. Fixes #5292 --- src/dialogs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dialogs.py b/src/dialogs.py index e93c52772..3ede0a6a0 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -2505,6 +2505,9 @@ class SingleMessageWindow: 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,