@@ -40,7 +40,6 @@ Item {
40 passwordInput.forceActiveFocus();
40 passwordInput.forceActiveFocus();
42 if (root.locked) {
42 if (root.locked) {
43− root.resetAuthentication();
44 root.selected(currentIndex);
43 root.selected(currentIndex);
46 root.responded("");
45 root.responded("");
@@ -69,7 +68,9 @@ Item {
69 function showError() {
68 function showError() {
70 wrongPasswordAnimation.start();
69 wrongPasswordAnimation.start();
71 root.resetAuthentication();
70 root.resetAuthentication();
72− passwordInput.focus = true;
72+ passwordInput.focus = true;
75 function reset() {
76 function reset() {
@@ -77,10 +78,13 @@ Item {
79 Keys.onEscapePressed: {
80 Keys.onEscapePressed: {
80− root.resetAuthentication();
81 selected(currentIndex);
81 selected(currentIndex);
84+ onCurrentIndexChanged: {
85+ userList.currentIndex = currentIndex;
84 Rectangle {
88 Rectangle {
85 id: highlightItem
89 id: highlightItem
@@ -109,8 +113,12 @@ Item {
109 flickDeceleration: 10000
113 flickDeceleration: 10000
111 readonly property bool movingInternally: moveTimer.running || userList.moving
115 readonly property bool movingInternally: moveTimer.running || userList.moving
116+ onMovingInternallyChanged: {
117+ if (!movingInternally) {
118+ root.selected(currentIndex);
113− currentIndex: root.currentIndex
114 onCurrentIndexChanged: {
122 onCurrentIndexChanged: {
115 root.resetAuthentication();
123 root.resetAuthentication();
116 moveTimer.start();
124 moveTimer.start();
@@ -222,6 +230,7 @@ Item {
222 height: units.gu(4.5)
230 height: units.gu(4.5)
223 width: parent.width - anchors.margins * 2
231 width: parent.width - anchors.margins * 2
224 opacity: userList.movingInternally ? 0 : 1
232 opacity: userList.movingInternally ? 0 : 1
233+ enabled: root.wasPrompted
226 property string promptText
235 property string promptText
227 placeholderText: root.wasPrompted ? promptText
236 placeholderText: root.wasPrompted ? promptText
@@ -240,7 +249,6 @@ Item {
240 root.responded(text);
249 root.responded(text);
242 Keys.onEscapePressed: {
251 Keys.onEscapePressed: {
243− root.resetAuthentication();
244 root.selected(currentIndex);
252 root.selected(currentIndex);