Correctly destroy all windows on quit()

Not all Dialogs have a window instance, some inherit Gtk.Window
This commit is contained in:
Philipp Hörist 2017-08-10 11:04:21 +02:00
parent 174e88024d
commit a25a38edd3
1 changed files with 4 additions and 1 deletions

View File

@ -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):
"""