summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveList.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 3172f71b7..a81f7cd23 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -361,7 +361,7 @@ Kirigami.ScrollablePage {
}
Controls.Label {
text: {
- diveListView.model.tripShortDate(section)
+ diveListView.model ? diveListView.model.tripShortDate(section) : "no data model"
}
color: subsurfaceTheme.primaryTextColor
font.pointSize: subsurfaceTheme.smallPointSize
@@ -386,7 +386,7 @@ Kirigami.ScrollablePage {
Controls.Label {
id: sectionText
text: {
- diveListView.model.tripTitle(section)
+ diveListView.model ? diveListView.model.tripTitle(section) : "no data model"
}
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
visible: text !== ""