Commit 4796f56b authored by Volker Krause's avatar Volker Krause
Browse files

Consider all possible sources for the platform name we have

parent 307c31a6
......@@ -101,10 +101,20 @@ Kirigami.ScrollablePage {
}
QQC2.Label {
property string platformName: {
if (vehicleModel.platform.name)
return vehicleModel.platform.name;
if (vehicleModel.stopover.expectedPlatform)
return vehicleModel.stopover.expectedPlatform;
if (vehicleModel.stopover.scheduledPlatform)
return vehicleModel.stopover.scheduledPlatform;
return "-";
}
Layout.row: 2
Layout.column: 1
Layout.columnSpan: 2
text: i18n("Platform: %1", (vehicleModel.platform.name ? vehicleModel.platform.name : "-"))
text: i18n("Platform: %1", platformName)
}
QQC2.Label {
Layout.row: 3
......
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