mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
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:
parent
ed4f0afe1a
commit
9a0c1c288d
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user