Get rid of main pane error when no currentItem
This commit is contained in:
parent
05ebe955d0
commit
0068550410
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user