diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2021-08-10 22:16:27 -0400 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2021-08-10 22:16:27 -0400 |
commit | 9a0c1c27edb2bcd0ab8e6fb4b59039c66218b935 (patch) | |
tree | c5e1e08c628b2fa96cd2689050e342fbf53317ff /resources/qml/RoomList.qml | |
parent | Remove unnecessary debugging log (diff) | |
download | nheko-9a0c1c27edb2bcd0ab8e6fb4b59039c66218b935.tar.xz |
Remove warnings on closing room
Diffstat (limited to 'resources/qml/RoomList.qml')
-rw-r--r-- | resources/qml/RoomList.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml index 66cbac5a..576383e2 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml @@ -33,7 +33,8 @@ Page { Connections { function onCurrentRoomChanged() { - roomlist.positionViewAtIndex(Rooms.roomidToIndex(Rooms.currentRoom.roomId), ListView.Contain); + if (Rooms.currentRoom) + roomlist.positionViewAtIndex(Rooms.roomidToIndex(Rooms.currentRoom.roomId), ListView.Contain); } target: Rooms |