get button handling right for drop-on-home dialog

This commit is contained in:
ben%netscape.com 2000-06-03 02:40:33 +00:00
parent ea1daa5486
commit 601c80f911

View File

@ -363,10 +363,11 @@ var homeButtonObserver = {
iconURL, checkValue, 2, 0, null, pressedVal);
nsPreferences.setBoolPref("browser.homepage.enable_home_button_drop", checkValue.value);
setHomepage = pressedVal.value;
setHomepage = pressedVal.value == 0 ? true : false;
}
else
setHomepage = true;
dump("*** pressedVal = " + pressedVal.value + "\n");
if (setHomepage)
nsPreferences.setUnicharPref("browser.startup.homepage", url);
},