aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveList.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-28 21:58:27 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-28 21:58:27 -0800
commitff2f6d4082e18a766bd3366e393816b5ce75f071 (patch)
tree46b7ada99685c42811e68cbf5553d299aee29ad5 /qt-mobile/qml/DiveList.qml
parent6dd3e4c30e50a839d840194d4df7613b2e87585f (diff)
downloadsubsurface-ff2f6d4082e18a766bd3366e393816b5ce75f071.tar.gz
QML UI: once again hide "--" as section header
The fix for correctly showing multiple trips with the same location text inadvertantly broke the detection of empty location text. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveList.qml')
-rw-r--r--qt-mobile/qml/DiveList.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml
index 7b300ed24..12fc99182 100644
--- a/qt-mobile/qml/DiveList.qml
+++ b/qt-mobile/qml/DiveList.qml
@@ -112,7 +112,7 @@ MobileComponents.Page {
// the :: and show the trip location
var shownText
var endsWithDoubleDash = /::--$/;
- if (endsWithDoubleDash.test(section)) {
+ if (endsWithDoubleDash.test(section) || section === "--") {
shownText = ""
} else {
shownText = section.replace(/.*::/, "")