Get rid of main pane error when no currentItem

This commit is contained in:
miruka 2020-03-12 23:31:13 -04:00
parent 05ebe955d0
commit 0068550410

View File

@ -22,13 +22,20 @@ HListView {
highlight: Rectangle { highlight: Rectangle {
id: highlightRectangle id: highlightRectangle
y: y:
! currentItem ?
0 :
selectedRoom ? selectedRoom ?
currentItem.y + currentItem.account.height + currentItem.y + currentItem.account.height +
currentItem.roomList.currentItem.y : currentItem.roomList.currentItem.y :
currentItem.y currentItem.y
width: mainPaneList.width width: mainPaneList.width
height: height:
! currentItem ?
0 :
selectedRoom ? selectedRoom ?
currentItem.roomList.currentItem.height : currentItem.roomList.currentItem.height :
currentItem.account.height currentItem.account.height