diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-10-22 16:45:37 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-26 11:38:26 -0700 |
commit | e03d3ac5d67dba0ac8343730f4f903a4c1fb7583 (patch) | |
tree | 3ca03a8293ce84a7aa17b1b0670cea59dce7324c /mobile-widgets/qml/DiveDetails.qml | |
parent | 320d2c47aab4bada071c665509f5eba499ed5780 (diff) | |
download | subsurface-e03d3ac5d67dba0ac8343730f4f903a4c1fb7583.tar.gz |
Mobile: don't show nothing for the location
We use 'Dive details' as page title, everywhere else we use
'<unnamed dive site>'.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveDetails.qml')
-rw-r--r-- | mobile-widgets/qml/DiveDetails.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index e84cf843e..a30984a9a 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -52,7 +52,8 @@ Kirigami.Page { property alias cylinderModel3: detailsEdit.cylinderModel3 property alias cylinderModel4: detailsEdit.cylinderModel4 - title: currentItem && currentItem.modelData ? currentItem.modelData.location : qsTr("Dive details") + title: currentItem && currentItem.modelData && currentItem.modelData.location && "" !== currentItem.modelData.location ? + currentItem.modelData.location : qsTr("Dive details") state: "view" leftPadding: 0 topPadding: Kirigami.Units.gridUnit / 2 |