avoid dereferencing undefined object

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-04-07 22:48:47 -07:00
parent 12f0af19cb
commit 1004ced285

View file

@ -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: [