Commit 58f6c104 authored by Volker Krause's avatar Volker Krause
Browse files

Don't access the floor level model before it's populated

Fixes a brief message replacement glitch in the title of the indoor map
page.
parent 01be1d0f
......@@ -17,7 +17,7 @@ import org.kde.kosmindoormap.kpublictransport 1.0
Kirigami.Page {
id: root
title: {
if (map.mapLoader.isLoading || map.hasError)
if (map.mapLoader.isLoading || map.hasError || map.floorLevels.rowCount() == 0)
return placeName;
if (map.floorLevels.hasName(map.view.floorLevel))
return map.floorLevels.name(map.view.floorLevel);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment