From 00685504104c646c6e23c71e2c1a4ffb0057034d Mon Sep 17 00:00:00 2001 From: miruka Date: Thu, 12 Mar 2020 23:31:13 -0400 Subject: [PATCH] Get rid of main pane error when no currentItem --- src/gui/MainPane/AccountRoomsList.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/MainPane/AccountRoomsList.qml b/src/gui/MainPane/AccountRoomsList.qml index f7ad7e48..11f75c59 100644 --- a/src/gui/MainPane/AccountRoomsList.qml +++ b/src/gui/MainPane/AccountRoomsList.qml @@ -22,13 +22,20 @@ HListView { highlight: Rectangle { id: highlightRectangle y: + ! currentItem ? + 0 : + selectedRoom ? currentItem.y + currentItem.account.height + currentItem.roomList.currentItem.y : + currentItem.y width: mainPaneList.width height: + ! currentItem ? + 0 : + selectedRoom ? currentItem.roomList.currentItem.height : currentItem.account.height