fix bad access of protected variable. b=302264 r=mento

This commit is contained in:
joshmoz%gmail.com 2005-07-26 22:46:47 +00:00
parent 84da97d9f1
commit 5394cc2cad

View File

@ -3500,7 +3500,7 @@ int TabBarVisiblePrefChangedCallback(const char* inPref, void* inBWC)
if (strcmp(inPref, gTabBarVisiblePref) == 0) {
BOOL newValue = [[PreferenceManager sharedInstance] getBooleanPref:gTabBarVisiblePref withSuccess:nil];
BrowserWindowController* bwc = (BrowserWindowController*)inBWC;
[bwc->mTabBrowser setBarAlwaysVisible:newValue];
[[bwc getTabBrowser] setBarAlwaysVisible:newValue];
}
return NS_OK;
}