summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-07 22:48:47 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-07 22:57:01 -0700
commit1004ced28592137586beff53b2c307c0b4164c3f (patch)
tree879be93d07192ecf9efd3ee15a3ea7c6c3f561d9 /mobile-widgets
parent12f0af19cbfec25befa9f2c2aee42edbee65068a (diff)
downloadsubsurface-1004ced28592137586beff53b2c307c0b4164c3f.tar.gz
avoid dereferencing undefined object
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveDetails.qml2
1 files changed, 1 insertions, 1 deletions
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: [