diff options
Diffstat (limited to 'components/PasswordDialog.qml')
| -rw-r--r-- | components/PasswordDialog.qml | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/components/PasswordDialog.qml b/components/PasswordDialog.qml index 79765f7d..7d1a5bd6 100644 --- a/components/PasswordDialog.qml +++ b/components/PasswordDialog.qml @@ -101,7 +101,6 @@ Window { root.accepted() root.close() } - Keys.onEscapePressed: { root.rejected() root.close() @@ -132,41 +131,39 @@ Window { id: buttons spacing: 60 Layout.alignment: Qt.AlignHCenter - + MoneroComponents.StandardButton { - id: okButton + id: cancelButton width: 120 fontSize: 14 shadowReleasedColor: "#FF4304" shadowPressedColor: "#B32D00" releasedColor: "#FF6C3C" pressedColor: "#FF4304" - text: qsTr("Ok") - KeyNavigation.tab: cancelButton + text: qsTr("Cancel") + KeyNavigation.tab: passwordInput onClicked: { - root.accepted() + root.rejected() root.close() } } - MoneroComponents.StandardButton { - id: cancelButton + id: okButton width: 120 fontSize: 14 shadowReleasedColor: "#FF4304" shadowPressedColor: "#B32D00" releasedColor: "#FF6C3C" pressedColor: "#FF4304" - text: qsTr("Cancel") - KeyNavigation.tab: passwordInput + text: qsTr("Ok") + KeyNavigation.tab: cancelButton onClicked: { - root.rejected() + root.accepted() root.close() } } } } - } |
