Bug 526479: Choosing autodetect in the language menulist failed [r=mark.finkle]

This commit is contained in:
Vivien Nicolas 2009-11-04 09:28:25 -05:00
parent b4a0c50a6b
commit f45c6049f5

View File

@ -164,7 +164,8 @@ var PreferencesView = {
let newLocale = this._list.selectedItem.value;
if (newLocale == "auto") {
gPrefService.clearUserPref("general.useragent.locale");
if (gPrefService.prefHasUserValue("general.useragent.locale"))
gPrefService.clearUserPref("general.useragent.locale");
gPrefService.setBoolPref("intl.locale.matchOS", true);
} else {
gPrefService.setBoolPref("intl.locale.matchOS", false);