When selecting a profile in the Profile Manager, mark it with Default=1 (bug 1089694). r=bsmedberg
authorPanos Astithas <past@mozilla.com>
Mon, 27 Oct 2014 18:41:09 +0200
changeset 233713 19e3dd4d73657d3a053c782872f8e60bc848f22b
parent 233712 f0abb6e26c0902efc46823166ea9489ee737412c
child 233714 24bf9ff8e2bdbca8dd63d446d2dc183265d9ce44
push id1
push usersledru@mozilla.com
push dateThu, 04 Dec 2014 17:57:20 +0000
reviewersbsmedberg
bugs1089694
milestone35.0a2
When selecting a profile in the Profile Manager, mark it with Default=1 (bug 1089694). r=bsmedberg
toolkit/profile/content/profileSelection.js
--- a/toolkit/profile/content/profileSelection.js
+++ b/toolkit/profile/content/profileSelection.js
@@ -97,16 +97,17 @@ function acceptDialog()
       gProfileManagerBundle.getFormattedString("profileLocked2", [appName, selectedProfile.profile.name, appName]);
     Services.prompt.alert(window, lockedTitle, locked);
 
     return false;
   }
   gDialogParams.objects.insertElementAt(profileLock.nsIProfileLock, 0, false);
 
   gProfileService.selectedProfile = selectedProfile.profile;
+  gProfileService.defaultProfile = selectedProfile.profile;
   updateStartupPrefs();
 
   gDialogParams.SetInt(0, 1);
 
   gDialogParams.SetString(0, selectedProfile.profile.name);
 
   return true;
 }