From 3b2dbc731e783114134d138d9481a83c64ae5369 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Mon, 20 Feb 2023 19:09:44 +0100 Subject: [PATCH] RoomListPage: Fix skipping invisible items in goToNextRoom() We don't want to skip over invisible items if they are one element after the end of the ListView, but if they aren't the last item. --- src/qml/Page/RoomListPage.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/Page/RoomListPage.qml b/src/qml/Page/RoomListPage.qml index fe0c3f48b..dd94fb665 100644 --- a/src/qml/Page/RoomListPage.qml +++ b/src/qml/Page/RoomListPage.qml @@ -134,7 +134,7 @@ Kirigami.ScrollablePage { function goToNextRoom() { do { listView.incrementCurrentIndex(); - } while (!listView.currentItem.visible && listView.currentIndex === listView.count) + } while (!listView.currentItem.visible && listView.currentIndex !== listView.count - 1) listView.currentItem.action.trigger(); }