@@ -125,8 +125,6 @@ FocusScope {
125 id: loginList
125 id: loginList
126 objectName: "loginList"
126 objectName: "loginList"
128− property int selectedUserIndex: 0
130 width: units.gu(40)
128 width: units.gu(40)
131 anchors {
129 anchors {
132 left: parent.left
130 left: parent.left
@@ -141,11 +139,10 @@ FocusScope {
141 Behavior on boxVerticalOffset { UbuntuNumberAnimation {} }
139 Behavior on boxVerticalOffset { UbuntuNumberAnimation {} }
143 model: root.userModel
141 model: root.userModel
144− currentSession: LightDMService.users.data(selectedUserIndex, LightDMService.userRoles.SessionRole);
145 onResponded: root.responded(response)
142 onResponded: root.responded(response)
146 onSelected: {
143 onSelected: {
147 root.selected(index)
144 root.selected(index)
148− loginList.selectedUserIndex = index;
145+ currentSession = LightDMService.users.data(index, LightDMService.userRoles.SessionRole);
150 onSessionChooserButtonClicked: parent.state = "SessionsList"
147 onSessionChooserButtonClicked: parent.state = "SessionsList"