Merge pull request #2781

a0b6c8a PasswordDialog: don't skip equality check (selsta)
This commit is contained in:
luigi1111 2020-02-28 16:09:36 -05:00
commit cb84652c8e
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

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()