diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index 0c6637e9d..3d146ce46 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -26,7 +26,7 @@ Kirigami.Page { property alias endpressure: detailsEdit.endpressureText property alias gasmix: detailsEdit.gasmixText - title: diveDetailsListView.currentItem.modelData.dive.location + title: diveDetailsListView.currentItem ? diveDetailsListView.currentItem.modelData.dive.location : "Dive details" state: "view" states: [