@@ -84,19 +84,22 @@ StyledItem {
8484 }
8585 }
8686
87− function quitWizard() {
88− pageStack.currentPage.enabled = false;
89−
87+ function savePassword() {
9088 if (password != "") {
91− var errorMsg = securityPrivacy.setSecurity("", password, passwordMethod)
89+ var errorMsg = securityPrivacy.setSecurity("", password, passwordMethod);
9290 if (errorMsg !== "") {
9391 // Ignore (but log) any errors, since we're past where the user set
9492 // the method. Worst case, we just leave the user with a swipe
9593 // security method and they fix it in the system settings.
96− console.log("Wizard: Error setting security method:", errorMsg)
94+ console.log("Wizard: Error setting security method:", errorMsg);
9795 }
9896 }
9997
98+ }
99+
100+ function quitWizard() {
101+ pageStack.currentPage.enabled = false;
102+ savePassword();
100103 quit();
101104 }
102105