Camino only - Bug 386459: Use 2 for the default SWM pref, rather than 0. Patch by Smokey Ardisson <alqahira@ardisson.org>. r=murph r=cl sr=smorgan

This commit is contained in:
stuart.morgan%alumni.case.edu 2007-08-13 16:20:56 +00:00
Родитель 5db504ed43
Коммит 68b871bc88
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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];
}