Make -ProfileWizard start the newly created profile b=288098 r=ccarlen sr=me

This commit is contained in:
neil%parkwaycc.co.uk 2005-04-01 08:29:25 +00:00
Родитель 64a16361e5
Коммит c7f18c5874
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -208,9 +208,12 @@ function onFinish()
if (window.opener)
// Add new profile to the list in the Profile Manager.
window.opener.CreateProfile(profileName, gProfileRoot);
else
else {
// Use the newly created Profile.
gProfile.currentProfile = profileName;
var dialogParams = window.arguments[0].QueryInterface(Components.interfaces.nsIDialogParamBlock);
dialogParams.SetInt(0, 1); //set the newly created profile as the default
}
// Exit the wizard.
return true;