Fixing bug 344958, add hidden preference for turning off tab jumpback. Patch by froodian <stridey@gmail.com>, r=cl, sr=pink.

This commit is contained in:
nick.kreeger%park.edu 2006-07-21 03:54:35 +00:00
parent 1e1a2555c5
commit 5d7e13b544
2 changed files with 6 additions and 1 deletions

View File

@ -126,3 +126,6 @@ pref("browser.download.progressDnldDialog.bringToFront", true);
// multi/single line controls
pref("layout.spellcheckDefault", 1);
// enable the tab jumpback feature
pref("camino.enable_tabjumpback", true);

View File

@ -155,7 +155,9 @@ NSString* const kTabBarBackgroundDoubleClickedNotification = @"kTabBarBackground
// make sure the close button and spinner get removed
[(BrowserTabViewItem *)tabViewItem willBeRemoved:YES];
if ([self selectedTabViewItem] == tabViewItem) {
if (mJumpbackTab)
BOOL tabJumpbackPref = [[PreferenceManager sharedInstance] getBooleanPref:"camino.enable_tabjumpback" withSuccess:NULL];
if (tabJumpbackPref && mJumpbackTab)
[mJumpbackTab selectTab:self];
else
[self selectNextTabViewItem:self];