aboutsummaryrefslogtreecommitdiff
path: root/components/PasswordDialog.qml
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2020-02-24 23:51:54 +0100
committerselsta <selsta@sent.at>2020-02-27 15:29:35 +0100
commita0b6c8a397222762228014df85bf87e563de9658 (patch)
tree0d7c3ce694d0a6642ea1bb639437f63e2c0a3fb6 /components/PasswordDialog.qml
parent44dfb80633baee456222cad3b67e2295ce1ee960 (diff)
downloadmonzero-gui-a0b6c8a397222762228014df85bf87e563de9658.tar.gz
monzero-gui-a0b6c8a397222762228014df85bf87e563de9658.tar.xz
monzero-gui-a0b6c8a397222762228014df85bf87e563de9658.zip
PasswordDialog: don't skip equality check
credit to consistent-dream
Diffstat (limited to 'components/PasswordDialog.qml')
-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()