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 {
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