aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/PasswordDialog.qml3
1 files changed, 3 insertions, 0 deletions
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()