From ff2f6d4082e18a766bd3366e393816b5ce75f071 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 28 Jan 2016 21:58:27 -0800 Subject: 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 --- qt-mobile/qml/DiveList.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-mobile') 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(/.*::/, "") -- cgit v1.2.3-70-g09d2