mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
6dd3e4c30e
commit
ff2f6d4082
1 changed files with 1 additions and 1 deletions
|
@ -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(/.*::/, "")
|
||||
|
|
Loading…
Add table
Reference in a new issue