summary refs log tree commit diff
path: root/resources/qml/RoomList.qml
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-08-10 22:16:27 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2021-08-10 22:16:27 -0400
commit9a0c1c27edb2bcd0ab8e6fb4b59039c66218b935 (patch)
treec5e1e08c628b2fa96cd2689050e342fbf53317ff /resources/qml/RoomList.qml
parentRemove unnecessary debugging log (diff)
downloadnheko-9a0c1c27edb2bcd0ab8e6fb4b59039c66218b935.tar.xz
Remove warnings on closing room
Diffstat (limited to 'resources/qml/RoomList.qml')
-rw-r--r--resources/qml/RoomList.qml3
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