PasswordDialog: don't skip equality check

credit to consistent-dream
This commit is contained in:
selsta 2020-02-24 23:51:54 +01:00
parent 44dfb80633
commit a0b6c8a397
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -253,6 +253,9 @@ Item {
Keys.enabled: root.visible
Keys.onEnterPressed: Keys.onReturnPressed(event)
Keys.onReturnPressed: {
if (!passwordDialogMode && passwordInput1.text !== passwordInput2.text) {
return;
}
root.close()
if (passwordDialogMode) {
root.accepted()