From a0b6c8a397222762228014df85bf87e563de9658 Mon Sep 17 00:00:00 2001 From: selsta Date: Mon, 24 Feb 2020 23:51:54 +0100 Subject: [PATCH] PasswordDialog: don't skip equality check credit to consistent-dream --- components/PasswordDialog.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml index 964ab9a6..43d2a2e6 100644 --- a/components/PasswordDialog.qml +++ b/components/PasswordDialog.qml @@ -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()