aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveList.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-22 16:45:37 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-26 11:38:26 -0700
commite03d3ac5d67dba0ac8343730f4f903a4c1fb7583 (patch)
tree3ca03a8293ce84a7aa17b1b0670cea59dce7324c /mobile-widgets/qml/DiveList.qml
parent320d2c47aab4bada071c665509f5eba499ed5780 (diff)
downloadsubsurface-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/DiveList.qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 07fd7ba4e..d4173d5f7 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -155,7 +155,7 @@ Kirigami.ScrollablePage {
anchors.left: leftBarDive.right
Controls.Label {
id: locationText
- text: (undefined !== location) ? location : ""
+ text: (undefined !== location && "" != location) ? location : qsTr("<unnamed dive site>")
font.weight: Font.Bold
font.pointSize: subsurfaceTheme.regularPointSize
elide: Text.ElideRight