mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 00:07:51 +00:00
PasswordDialog: don't skip equality check
credit to consistent-dream
This commit is contained in:
parent
44dfb80633
commit
a0b6c8a397
1 changed files with 3 additions and 0 deletions
|
@ -253,6 +253,9 @@ Item {
|
||||||
Keys.enabled: root.visible
|
Keys.enabled: root.visible
|
||||||
Keys.onEnterPressed: Keys.onReturnPressed(event)
|
Keys.onEnterPressed: Keys.onReturnPressed(event)
|
||||||
Keys.onReturnPressed: {
|
Keys.onReturnPressed: {
|
||||||
|
if (!passwordDialogMode && passwordInput1.text !== passwordInput2.text) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
root.close()
|
root.close()
|
||||||
if (passwordDialogMode) {
|
if (passwordDialogMode) {
|
||||||
root.accepted()
|
root.accepted()
|
||||||
|
|
Loading…
Reference in a new issue