on xenial help sign in
don't try to set the password if it's empty
3dffe39Lukáš Tinkl
qml/Wizard/Pages.qml+8−6
@@ -74,12 +74,14 @@ Item {
74 function quitWizard() {
74 function quitWizard() {
75 pageStack.currentPage.enabled = false;
75 pageStack.currentPage.enabled = false;
76
76
77+ if (password != "") {
77− var errorMsg = securityPrivacy.setSecurity("", password, passwordMethod)
78+ var errorMsg = securityPrivacy.setSecurity("", password, passwordMethod)
78− if (errorMsg !== "") {
79+ if (errorMsg !== "") {
79− // Ignore (but log) any errors, since we're past where the user set
80+ // 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+ // the method. Worst case, we just leave the user with a swipe
81− // security method and they fix it in the system settings.
82+ // security method and they fix it in the system settings.
82− console.log("Error setting security method:", errorMsg)
83+ console.log("Error setting security method:", errorMsg)
84+ }
83 }
85 }
84
86
85 quit();
87 quit();