From 9397131967005beeccd12174f50b5ca0a7d4b997 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Tue, 17 Dec 2019 17:18:16 -0800 Subject: [PATCH] fix password not match error; fix clearing add/edit pane on reset --- qml/panes/ProfileAddEditPane.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qml/panes/ProfileAddEditPane.qml b/qml/panes/ProfileAddEditPane.qml index 5285fc00..b0c3ef85 100644 --- a/qml/panes/ProfileAddEditPane.qml +++ b/qml/panes/ProfileAddEditPane.qml @@ -35,6 +35,9 @@ ColumnLayout { // Add Profile Pane txtPassword2.text = "" deleting = false deleteConfirmLabel.color = "black" + passwordErrorLabel.visible = false + txtCurrentPassword.text = "" + tag = "" confirmDeleteTxt.text = "" radioUsePassword.checked = true @@ -193,6 +196,8 @@ ColumnLayout { // Add Profile Pane passwordErrorLabel.visible = true } else { gcd.createProfile(txtProfileName.text, radioNoPassword.checked, txtPassword1.text) + gcd.reloadProfileList() + parentStack.pane = parentStack.managementPane } } else { gcd.updateNick(onion, txtProfileName.text) @@ -202,12 +207,10 @@ ColumnLayout { // Add Profile Pane passwordErrorLabel.visible = true } else { gcd.changePassword(onion, txtCurrentPassword.text, txtPassword1.text, radioNoPassword.checked) - return } } } - gcd.reloadProfileList() - parentStack.pane = parentStack.managementPane + } }