diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-07-06 15:53:52 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-07-06 15:53:52 +0200 |
commit | 941e54654eabed0a3568f7fefe424a45aa02eddb (patch) | |
tree | 49aa02b174c428962d99142d8061267bfcd79e69 /toolkit/profile/content/createProfileWizard.js | |
parent | ad9ee72dcd7981bc47b3844a224d69fadfdfd8ef (diff) | |
parent | 0daa12376295d5d796256a116eb2a348a3a9273f (diff) | |
download | UXP-941e54654eabed0a3568f7fefe424a45aa02eddb.tar UXP-941e54654eabed0a3568f7fefe424a45aa02eddb.tar.gz UXP-941e54654eabed0a3568f7fefe424a45aa02eddb.tar.lz UXP-941e54654eabed0a3568f7fefe424a45aa02eddb.tar.xz UXP-941e54654eabed0a3568f7fefe424a45aa02eddb.zip |
Merge branch 'master' of https://github.com/MoonchildProductions/UXP into _testBranch_test_1
Diffstat (limited to 'toolkit/profile/content/createProfileWizard.js')
-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. |