Call SetCurrentProfile so that LoadNewProfilePrefs() is using the correct profile when checking for new files.

Bug #168433 r=ccarlen sr=alecf
This commit is contained in:
seawood%netscape.com 2002-09-18 17:14:49 +00:00
parent a700e7822f
commit 8f5c0d4b40

View File

@ -881,7 +881,7 @@ nsProfile::ProcessArgs(nsICmdLineService *cmdLineArgs,
rv = CreateNewProfile(currProfileName.get(), currProfilePath.get(), nsnull, PR_TRUE);
if (NS_SUCCEEDED(rv)) {
*profileDirSet = PR_TRUE;
mCurrentProfileAvailable = PR_TRUE;
gProfileDataAccess->SetCurrentProfile(currProfileName.get());
// Need to load new profile prefs.
rv = LoadNewProfilePrefs();