1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 09:12:28 +01:00

Remove inane fourth argument from tabs.remove.

This commit is contained in:
Kris Maglione
2010-10-16 15:55:14 -04:00
parent 2fbd7c93cc
commit 64694a6327
2 changed files with 10 additions and 19 deletions

View File

@@ -1719,8 +1719,10 @@ const Dactyl = Module("dactyl", {
commands.add(["q[uit]"],
dactyl.has("tabs") ? "Quit current tab" : "Quit application",
function (args) {
if (dactyl.has("tabs"))
tabs.remove(config.browser.mCurrentTab, 1, false, 1);
if (dactyl.has("tabs") && tabs.remove(config.browser.mCurrentTab, 1, false))
return;
else if (dactyl.windows.length > 1)
window.close();
else
dactyl.quit(false, args.bang);
}, {