avoid dereferencing undefined object
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
12f0af19cb
commit
1004ced285
@ -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: [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user