1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-02 17:14:12 +01:00

beep if trying to delete the last tab which is already an empty tab

This commit is contained in:
Martin Stubenschrott
2007-10-14 10:28:14 +00:00
parent 4c125b4ac1
commit 81eb2d92da
2 changed files with 13 additions and 5 deletions

View File

@@ -157,8 +157,14 @@ function Tabs() //{{{
getBrowser().removeTab(tab);
else
{
vimperator.open("about:blank", vimperator.NEW_BACKGROUND_TAB);
getBrowser().removeTab(tab);
if (vimperator.buffer.URL != "about:blank" ||
getWebNavigation().sessionHistory.count > 0)
{
vimperator.open("about:blank", vimperator.NEW_BACKGROUND_TAB);
getBrowser().removeTab(tab);
}
else
vimperator.beep();
}
}