Don't clear password prompt before remembering

This commit is contained in:
Dag Heyman 2017-04-10 09:16:49 +02:00
parent 7fef2be38d
commit 29ec5db8af
No known key found for this signature in database
GPG Key ID: 06FC004369E7D338
2 changed files with 9 additions and 1 deletions

View File

@ -11,6 +11,14 @@ DefaultDialog {
property string password: password.text
property bool remember: rememberPassword.checked
onVisibilityChanged: {
// Clear the password from old canceled entries
// when a new dialog is shown.
if (visible) {
clear()
}
}
ColumnLayout {
RowLayout {
Label {
@ -62,5 +70,6 @@ DefaultDialog {
function clear() {
password.text = ''
rememberPassword.checked = false
}
}

View File

@ -521,7 +521,6 @@ ApplicationWindow {
} else {
device.validate(passwordPrompt.password)
}
passwordPrompt.clear()
}
function deleteSelectedCredential() {