diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-06-23 22:52:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-23 22:52:34 +0200 |
commit | 696b7d3f9f625bf5140bc5ff8396b7ef9d29c79e (patch) | |
tree | 4e80c065f66889b283efeef7481fbfe28e79b0a7 /toolkit/profile/content | |
parent | 1dfd7afd484024d8b091d906e2817e6bd6f4b383 (diff) | |
parent | 883b156dd1d42d3ba44413ea0cbaa76a7beb0276 (diff) | |
download | UXP-696b7d3f9f625bf5140bc5ff8396b7ef9d29c79e.tar UXP-696b7d3f9f625bf5140bc5ff8396b7ef9d29c79e.tar.gz UXP-696b7d3f9f625bf5140bc5ff8396b7ef9d29c79e.tar.lz UXP-696b7d3f9f625bf5140bc5ff8396b7ef9d29c79e.tar.xz UXP-696b7d3f9f625bf5140bc5ff8396b7ef9d29c79e.zip |
Merge pull request #532 from janekptacijarabaci/toolkit_create-new-profile_error_1
Toolkit - Fix throws an error from "Create a New Profile"
Diffstat (limited to 'toolkit/profile/content')
-rw-r--r-- | toolkit/profile/content/createProfileWizard.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/toolkit/profile/content/createProfileWizard.js b/toolkit/profile/content/createProfileWizard.js index 1963f66bc..14d006b31 100644 --- a/toolkit/profile/content/createProfileWizard.js +++ b/toolkit/profile/content/createProfileWizard.js @@ -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. |