diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-01-28 21:58:27 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-28 21:58:27 -0800 |
commit | ff2f6d4082e18a766bd3366e393816b5ce75f071 (patch) | |
tree | 46b7ada99685c42811e68cbf5553d299aee29ad5 /qt-mobile/qml/DiveList.qml | |
parent | 6dd3e4c30e50a839d840194d4df7613b2e87585f (diff) | |
download | subsurface-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.qml | 2 |
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(/.*::/, "") |