r=gayatrib. Fix for Bug 16414. If the profile dir is deleted it always gets rebuilt based on the path it gets from registry

This commit is contained in:
racham%netscape.com 1999-10-28 21:05:26 +00:00
parent ed4f0afe1a
commit 9a0c1c288d

View File

@ -583,12 +583,15 @@ NS_IMETHODIMP nsProfile::GetProfileDir(const char *profileName, nsFileSpec* prof
nsFileSpec defaultsDirSpec;
profDefaultsDir->GetFileSpec(&defaultsDirSpec);
// Need a separate hack for Mac. For now app folder is the fall back on Mac.
nsFilePath(tmpFileSpec.GetNativePathCString(), PR_TRUE);
// Copy contents from defaults folder.
// Copy contents from defaults folder.
if (defaultsDirSpec.Exists())
{
defaultsDirSpec.RecursiveCopy(tmpFileSpec);
}
{
defaultsDirSpec.RecursiveCopy(tmpFileSpec);
}
}