Allow accepting set password prompt with enter

This commit is contained in:
Dag Heyman 2017-03-14 10:40:00 +01:00
parent f6af80c3e3
commit 6494a4c230
No known key found for this signature in database
GPG Key ID: 06FC004369E7D338
2 changed files with 7 additions and 5 deletions

View File

@ -45,7 +45,7 @@ DefaultDialog {
}
function promptAccepted() {
close();
close()
accepted()
}

View File

@ -33,6 +33,7 @@ DefaultDialog {
id: confirmPassword
echoMode: TextInput.Password
Layout.fillWidth: true
onAccepted: promptAccepted()
}
}
RowLayout {
@ -40,10 +41,7 @@ DefaultDialog {
Button {
text: qsTr("Set password")
Layout.alignment: Qt.AlignRight | Qt.AlignBottom
onClicked: {
close()
accepted()
}
onClicked: promptAccepted()
}
Button {
text: qsTr("Cancel")
@ -51,4 +49,8 @@ DefaultDialog {
}
}
}
function promptAccepted() {
close()
accepted()
}
}