From bd9c55742b520afd0bdcccc4bba6bdc9035a0a07 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 28 Aug 2008 06:47:04 +0000 Subject: [PATCH] move Quit event triggering to liberator.shutdown() --- content/liberator.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/content/liberator.js b/content/liberator.js index a87651b5..2486537b 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -888,8 +888,6 @@ const liberator = (function () //{{{ // quit liberator, no matter how many tabs/windows are open quit: function (saveSession) { - liberator.autocommands.trigger("Quit", ""); - if (saveSession) liberator.options.setPref("browser.startup.page", 3); // start with saved session else @@ -913,8 +911,6 @@ const liberator = (function () //{{{ if (cancelQuit.data) return; - liberator.autocommands.trigger("Quit", ""); - // notify all windows that an application quit has been granted. os.notifyObservers(null, "quit-application-granted", null); @@ -1038,6 +1034,8 @@ const liberator = (function () //{{{ liberator.quickmarks.destroy(); window.dump("All liberator modules destroyed\n"); + + liberator.autocommands.trigger("Quit", ""); }, sleep: function (ms)