From a25a38edd344bb651c31b5c29951405ee6d8d652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Thu, 10 Aug 2017 11:04:21 +0200 Subject: [PATCH] Correctly destroy all windows on quit() Not all Dialogs have a window instance, some inherit Gtk.Window --- gajim/roster_window.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gajim/roster_window.py b/gajim/roster_window.py index 51192d451..ad203a22e 100644 --- a/gajim/roster_window.py +++ b/gajim/roster_window.py @@ -2395,7 +2395,10 @@ class RosterWindow: if isinstance(w, dict): self.close_all_from_dict(w) else: - w.window.destroy() + try: + w.window.destroy() + except AttributeError: + w.destroy() def close_all(self, account, force=False): """