зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
5db504ed43
Коммит
68b871bc88
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче