Fix for regression nsbeta2+ bug #45299. r=sgehani

This commit is contained in:
dbragg%netscape.com 2000-07-17 19:56:53 +00:00
Родитель 45ed74357a
Коммит b739134e80
1 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -794,6 +794,12 @@ nsPrefMigration::ProcessPrefsCallback(const char* oldProfilePathStr, const char
if (NS_FAILED(rv)) return rv;
rv = oldNewsPath->AppendRelativeUnixPath(OLD_NEWS_DIR_NAME);
if (NS_FAILED(rv)) return rv;
rv = newNewsPath->FromFileSpec(newProfilePath);
if (NS_FAILED(rv)) return rv;
rv = SetPremigratedFilePref(PREF_NEWS_DIRECTORY, oldNewsPath);
if (NS_FAILED(rv)) return rv;
newsDriveDefault = PR_TRUE;
}
@ -1061,11 +1067,6 @@ nsPrefMigration::ProcessPrefsCallback(const char* oldProfilePathStr, const char
////////////////////////////////////////////////////////////////////////////
// Set all the appropriate NEWS prefs.
////////////////////////////////////////////////////////////////////////////
rv = SetPremigratedFilePref(PREF_NEWS_DIRECTORY, oldNewsPath);
if (NS_FAILED(rv)) return rv;
rv = newNewsPath->FromFileSpec(newProfilePath);
if (NS_FAILED(rv)) return rv;
rv = newNewsPath->Exists(&exists);
if (NS_FAILED(rv)) return rv;