From 097096590b5f730b994dd89ef1e1fa68ec6fee87 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Wed, 30 Aug 2023 00:06:41 +0200 Subject: [PATCH] Fix QML warning --- src/qml/Page/RoomList/Page.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {