Correctly destroy all windows on quit()
Not all Dialogs have a window instance, some inherit Gtk.Window
This commit is contained in:
parent
174e88024d
commit
a25a38edd3
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue