diff options
-rw-r--r-- | accounts/gmail/qml/Login.qml | 1 | ||||
-rw-r--r-- | accounts/imap/qml/Login.qml | 1 | ||||
-rw-r--r-- | accounts/kolabnow/qml/Login.qml | 1 | ||||
-rw-r--r-- | framework/qml/LoginAccount.qml | 7 |
4 files changed, 9 insertions, 1 deletions
diff --git a/accounts/gmail/qml/Login.qml b/accounts/gmail/qml/Login.qml index 597e3ee3..bcab19be 100644 --- a/accounts/gmail/qml/Login.qml +++ b/accounts/gmail/qml/Login.qml | |||
@@ -26,6 +26,7 @@ Item { | |||
26 | property alias accountId: settings.accountIdentifier | 26 | property alias accountId: settings.accountIdentifier |
27 | property string heading: qsTr("Login") | 27 | property string heading: qsTr("Login") |
28 | property string subheadline: settings.accountName | 28 | property string subheadline: settings.accountName |
29 | property bool valid: pwField.acceptableInput | ||
29 | 30 | ||
30 | GmailAccount.GmailSettings { | 31 | GmailAccount.GmailSettings { |
31 | id: settings | 32 | id: settings |
diff --git a/accounts/imap/qml/Login.qml b/accounts/imap/qml/Login.qml index c9304b0e..d013f6ca 100644 --- a/accounts/imap/qml/Login.qml +++ b/accounts/imap/qml/Login.qml | |||
@@ -26,6 +26,7 @@ Item { | |||
26 | property alias accountId: settings.accountIdentifier | 26 | property alias accountId: settings.accountIdentifier |
27 | property string heading: qsTr("Login") | 27 | property string heading: qsTr("Login") |
28 | property string subheadline: settings.accountName | 28 | property string subheadline: settings.accountName |
29 | property bool valid: pwField.acceptableInput | ||
29 | 30 | ||
30 | ImapAccount.ImapSettings { | 31 | ImapAccount.ImapSettings { |
31 | id: settings | 32 | id: settings |
diff --git a/accounts/kolabnow/qml/Login.qml b/accounts/kolabnow/qml/Login.qml index 856f8ba4..877dd6a9 100644 --- a/accounts/kolabnow/qml/Login.qml +++ b/accounts/kolabnow/qml/Login.qml | |||
@@ -26,6 +26,7 @@ Item { | |||
26 | property alias accountId: settings.accountIdentifier | 26 | property alias accountId: settings.accountIdentifier |
27 | property string heading: qsTr("Login") | 27 | property string heading: qsTr("Login") |
28 | property string subheadline: settings.accountName | 28 | property string subheadline: settings.accountName |
29 | property bool valid: pwField.acceptableInput | ||
29 | 30 | ||
30 | KolabnowAccount.KolabnowSettings { | 31 | KolabnowAccount.KolabnowSettings { |
31 | id: settings | 32 | id: settings |
diff --git a/framework/qml/LoginAccount.qml b/framework/qml/LoginAccount.qml index f1289dc4..65f162a8 100644 --- a/framework/qml/LoginAccount.qml +++ b/framework/qml/LoginAccount.qml | |||
@@ -97,7 +97,11 @@ Item { | |||
97 | } | 97 | } |
98 | } | 98 | } |
99 | } | 99 | } |
100 | Keys.onReturnPressed: login() | 100 | Keys.onReturnPressed: { |
101 | if (loader.item.valid) { | ||
102 | login() | ||
103 | } | ||
104 | } | ||
101 | 105 | ||
102 | Item { | 106 | Item { |
103 | id: footer | 107 | id: footer |
@@ -112,6 +116,7 @@ Item { | |||
112 | anchors.right: parent.right | 116 | anchors.right: parent.right |
113 | text: qsTr("Login") | 117 | text: qsTr("Login") |
114 | onClicked: login() | 118 | onClicked: login() |
119 | enabled: loader.item.valid | ||
115 | } | 120 | } |
116 | } | 121 | } |
117 | } | 122 | } |