make sure we close all windows prior to unloading the collection

This commit is contained in:
Damien Elmes 2017-02-19 15:13:58 +10:00
parent 7ebd66a1c8
commit 745108bffd

View file

@ -667,8 +667,8 @@ title="%s" %s>%s</button>''' % (
"Called from a shortcut key. Close current active window." "Called from a shortcut key. Close current active window."
aw = self.app.activeWindow() aw = self.app.activeWindow()
if not aw or aw == self or force: if not aw or aw == self or force:
self.unloadProfile(browser=False)
self.app.closeAllWindows() self.app.closeAllWindows()
self.unloadProfile(browser=False)
else: else:
aw.close() aw.close()