From 68b871bc88c85d0bdf0f1d7d6e910f9672991385 Mon Sep 17 00:00:00 2001 From: "stuart.morgan%alumni.case.edu" Date: Mon, 13 Aug 2007 16:20:56 +0000 Subject: [PATCH] Camino only - Bug 386459: Use 2 for the default SWM pref, rather than 0. Patch by Smokey Ardisson . r=murph r=cl sr=smorgan --- camino/PreferencePanes/Tabs/Tabs.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/camino/PreferencePanes/Tabs/Tabs.mm b/camino/PreferencePanes/Tabs/Tabs.mm index fdfe6bd9b11..7aaa1020dbb 100644 --- a/camino/PreferencePanes/Tabs/Tabs.mm +++ b/camino/PreferencePanes/Tabs/Tabs.mm @@ -75,7 +75,7 @@ const int kOpenExternalLinksInNewTab = 1; [mCheckboxOpenTabsForExternalLinks setState:NSMixedState]; int swmBehavior = [self getIntPref:"browser.link.open_newwindow" withSuccess:&gotPref]; - if (swmBehavior == nsIBrowserDOMWindow::OPEN_DEFAULTWINDOW) + if (swmBehavior == nsIBrowserDOMWindow::OPEN_NEWWINDOW) [mSingleWindowMode setState:NSOffState]; else if (swmBehavior == nsIBrowserDOMWindow::OPEN_NEWTAB) [mSingleWindowMode setState:NSOnState]; @@ -99,7 +99,7 @@ const int kOpenExternalLinksInNewTab = 1; } else if (sender == mSingleWindowMode) { [sender setAllowsMixedState:NO]; - int newState = ([sender state] == NSOnState) ? nsIBrowserDOMWindow::OPEN_NEWTAB : nsIBrowserDOMWindow::OPEN_DEFAULTWINDOW; + int newState = ([sender state] == NSOnState) ? nsIBrowserDOMWindow::OPEN_NEWTAB : nsIBrowserDOMWindow::OPEN_NEWWINDOW; [self setPref:"browser.link.open_newwindow" toInt:newState]; }