@@ -144,27 +144,12 @@ FocusScope {
144144 currentSession: LightDMService.users.data(selectedUserIndex, LightDMService.userRoles.SessionRole);
145145 onResponded: root.responded(response)
146146 onSelected: {
147− if (LightDMService.users.mock) {
148− LightDMService.users.mock.currentUsername = currentUser;
149− }
150−
151− loginList.selectedUserIndex = index;
152147 root.selected(index)
153− currentSession = LightDMService.users.data(index, LightDMService.userRoles.SessionRole);
148+ loginList.selectedUserIndex = index;
154149 }
155150 onSessionChooserButtonClicked: parent.state = "SessionsList"
156151
157152 Keys.forwardTo: [sessionChooserLoader.item]
158−
159− // This is only for testing
160− Connections {
161− // TODO when Qt 5.7
162− //enabled: LightDM.Users.mock
163− target: LightDMService.users
164− onModelReset: {
165− loginList.currentSession = LightDMService.users.data(loginList.selectedUserIndex, LightDMService.userRoles.SessionRole);
166− }
167− }
168153 }
169154
170155 Loader {