Toolkit - Fix throws an error from Create a New Profile

Issue #531
This commit is contained in:
janekptacijarabaci 2018-06-23 15:03:07 +02:00 committed by Roy Tam
commit b1b86c587c

View file

@ -96,13 +96,15 @@ function chooseProfileFolder()
dirChooser.show();
newProfileRoot = dirChooser.file;
// Disable the "Default Folder..." button when the default profile folder
// was selected manually in the File Picker.
document.getElementById("useDefault").disabled =
(newProfileRoot.parent.equals(gDefaultProfileParent));
if (newProfileRoot) {
// Disable the "Default Folder..." button when the default profile folder
// was selected manually in the File Picker.
document.getElementById("useDefault").disabled =
(newProfileRoot.parent.equals(gDefaultProfileParent));
gProfileRoot = newProfileRoot;
updateProfileDisplay();
gProfileRoot = newProfileRoot;
updateProfileDisplay();
}
}
// Checks the current user input for validity and triggers an error message accordingly.