diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-07 22:48:47 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-07 22:57:01 -0700 |
commit | 1004ced28592137586beff53b2c307c0b4164c3f (patch) | |
tree | 879be93d07192ecf9efd3ee15a3ea7c6c3f561d9 /mobile-widgets/qml/DiveDetails.qml | |
parent | 12f0af19cbfec25befa9f2c2aee42edbee65068a (diff) | |
download | subsurface-1004ced28592137586beff53b2c307c0b4164c3f.tar.gz |
avoid dereferencing undefined object
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveDetails.qml')
-rw-r--r-- | mobile-widgets/qml/DiveDetails.qml | 2 |
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: [ |