Bug 304290: Treeview of 'Choose Folder' Option in Create Profile/Profile Manager should not point at 'my documents' by default (make it point to the default profile root instead), patch by Simon B�nzli <zeniko@gmail.com>, r=mconnor

This commit is contained in:
gavin%gavinsharp.com 2006-01-15 02:04:18 +00:00
parent 7ad0193c28
commit a2f801cfd6

View File

@ -127,6 +127,10 @@ function chooseProfileFolder()
dirChooser.init(window, gProfileManagerBundle.getString("chooseFolder"),
I.nsIFilePicker.modeGetFolder);
dirChooser.appendFilters(I.nsIFilePicker.filterAll);
// default to the Profiles folder
dirChooser.displayDirectory = gDefaultProfileParent;
dirChooser.show();
newProfileRoot = dirChooser.file;