diff --git a/src/qml/Page/RoomList/Page.qml b/src/qml/Page/RoomList/Page.qml index 61d7e4119..58c8cfef6 100644 --- a/src/qml/Page/RoomList/Page.qml +++ b/src/qml/Page/RoomList/Page.qml @@ -161,7 +161,7 @@ Kirigami.Page { ItemSelectionModel { id: itemSelection model: root.roomListModel - onCurrentChanged: listView.currentIndex = sortFilterRoomListModel.mapFromSource(current).row + onCurrentChanged: (current) => listView.currentIndex = sortFilterRoomListModel.mapFromSource(current).row } model: SortFilterRoomListModel {