@@ -74,12 +74,14 @@ Item {
7474 function quitWizard() {
7575 pageStack.currentPage.enabled = false;
7676
77− var errorMsg = securityPrivacy.setSecurity("", password, passwordMethod)
78− if (errorMsg !== "") {
79− // Ignore (but log) any errors, since we're past where the user set
80− // the method. Worst case, we just leave the user with a swipe
81− // security method and they fix it in the system settings.
82− console.log("Error setting security method:", errorMsg)
77+ if (password != "") {
78+ var errorMsg = securityPrivacy.setSecurity("", password, passwordMethod)
79+ if (errorMsg !== "") {
80+ // Ignore (but log) any errors, since we're past where the user set
81+ // the method. Worst case, we just leave the user with a swipe
82+ // security method and they fix it in the system settings.
83+ console.log("Error setting security method:", errorMsg)
84+ }
8385 }
8486
8587 quit();