Skip to content
Snippets Groups Projects
Commit 9d9b5e4f authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Don't set initial room with an empty room list

parent 6d9acc86
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,9 @@ void RoomList::setInitialRooms(const Rooms &rooms)
ui->scrollVerticalLayout->insertWidget(pos, room_item);
}
if (rooms_.isEmpty())
return;
// TODO: Move this into its own function.
auto first_room = rooms_.first();
first_room->setPressedState(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment