Bug 1116097 - Selected profile not remembered in profiles.ini (regression) r=Neil a=IanN a=comm-aurora a=comm-beta CLOSED TREE
authorPhilip Chee <philip.chee@gmail.com>
Mon, 19 Jan 2015 23:51:11 +0800
changeset 17375 fe15b3608980fdcf053378e97e0f05c6fa53e39a
parent 17374 23c7c2994dec0b91ca16cd5b26392605e78cc361
child 17376 d86c8591cd92241689ba92488efbf0cea58b7ba8
push id10715
push userphilip.chee@gmail.com
push dateMon, 19 Jan 2015 15:52:23 +0000
treeherdercomm-central@5634cccd23fd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeil, IanN, comm-aurora, comm-beta
bugs1116097
Bug 1116097 - Selected profile not remembered in profiles.ini (regression) r=Neil a=IanN a=comm-aurora a=comm-beta CLOSED TREE
suite/common/profile/profileSelection.js
--- a/suite/common/profile/profileSelection.js
+++ b/suite/common/profile/profileSelection.js
@@ -102,16 +102,17 @@ function AcceptDialog()
     if (selected.profile.rootDir.equals(profD) &&
         selected.profile.localDir.equals(profLD))
       return true;
   }
 
   try {
     var profileLock = selected.profile.lock({});
     gProfileService.selectedProfile = selected.profile;
+    gProfileService.defaultProfile = selected.profile;
     gProfileService.flush();
     if (gDialogParams.objects) {
       gDialogParams.objects.insertElementAt(profileLock, 0, false);
       gProfileService.startOffline = document.getElementById("offlineState").checked;
       gDialogParams.SetInt(0, 1);
       gDialogParams.SetString(0, selected.profile.name);
       return true;
     }