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>
This commit is contained in:
Dirk Hohndel 2019-10-22 16:45:37 -04:00
parent 320d2c47aa
commit e03d3ac5d6
3 changed files with 4 additions and 3 deletions

View file

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