further fix prefs saving problem by not recording error when ANY prefs file failes to open, just when evaluation fails

This commit is contained in:
alecf%netscape.com 2000-03-29 10:07:39 +00:00
parent 4cafca9923
commit 37043e78db

View File

@ -287,7 +287,8 @@ NS_IMETHODIMP nsPref::ReadUserPrefsFrom(nsIFileSpec* inFile)
!= PREF_NOERROR)
rv = NS_ERROR_FAILURE;
JS_EndRequest(gMochaContext);
gErrorOpeningUserPrefs = NS_FAILED(rv);
// pref_OpenFileSpec will set this for us, we don't need to.
// gErrorOpeningUserPrefs = NS_FAILED(rv);
return rv;
} // nsPref::ReadUserPrefsFrom