summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2010-12-01 19:58:51 -0500
committerKris Maglione <maglione.k@gmail.com>2010-12-01 19:58:51 -0500
commit0bf9cfb0bc1bad386d463d6111533653d776e4b7 (patch)
tree086a4469925903b15febf819a896fe1f4ebc8e23 /common
parentaf3d7bce0ead5762562e968559123f592b23b4da (diff)
downloadpentadactyl-0bf9cfb0bc1bad386d463d6111533653d776e4b7.tar.gz
Avoid showing a rather silly and irrelevant prompt on :qall/ZQ.
Diffstat (limited to 'common')
-rw-r--r--common/content/dactyl.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/content/dactyl.js b/common/content/dactyl.js
index 59995171..b6c2a0a7 100644
--- a/common/content/dactyl.js
+++ b/common/content/dactyl.js
@@ -930,7 +930,11 @@ const Dactyl = Module("dactyl", {
* windows could be closed individually.
*/
quit: function (saveSession, force) {
- if (!force && !canQuitApplication())
+ if (!force &&
+ prefs.withContext(function () {
+ prefs.set("browser.warnOnQuit", false);
+ return !canQuitApplication();
+ }))
return;
let pref = "browser.startup.page";