Bug 57056 - search.rdf not being migrated

This commit is contained in:
ccarlen%netscape.com 2001-01-03 13:05:00 +00:00
Родитель c35dca9225
Коммит 9f51f2ed10
1 изменённых файлов: 8 добавлений и 5 удалений

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

@ -2253,14 +2253,17 @@ nsProfile::GetFile(const char *prop, PRBool *persistant, nsIFile **_retval)
}
else if (inAtom == sApp_SearchFile50)
{
// Here we differ from nsFileLocator - It checks for the
// existance of this file and if it does not exist, copies
// it from the defaults folder to the profile folder. Since
// WE set up any profile folder, we'll make sure it's copied then.
// We do need to ensure that this file exists. If
// not, it needs to be copied from the defaults
// folder.
rv = CloneProfileDirectorySpec(getter_AddRefs(localFile));
if (NS_SUCCEEDED(rv))
{
rv = localFile->Append(SEARCH_FILE_50_NAME);
if (NS_SUCCEEDED(rv))
rv = EnsureProfileFileExists(localFile);
}
}
else if (inAtom == sApp_MailDirectory50)
{