[PATCH] QML-UI: Do not show strange double dashes for trips in Divelist

Jan Mulder jlmulder at xs4all.nl
Sat Jan 23 00:49:18 PST 2016


After fixing the regression (commit 9e9d220c9803) strange double dashes
appeared in the Divelist headers for trips. Just suppress it.

Signed-off-by: Jan Mulder <jlmulder at xs4all.nl>
---
  qt-mobile/qml/DiveList.qml | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml
index 60a4542..21858af 100644
--- a/qt-mobile/qml/DiveList.qml
+++ b/qt-mobile/qml/DiveList.qml
@@ -106,7 +106,7 @@ MobileComponents.Page {
  
  			MobileComponents.Heading {
  				id: sectionText
-				text: section
+				text: {section == "--" ? "" : section }
  				anchors {
  					top: parent.top
  					left: parent.left
-- 
2.7.0

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20160123/c148cbb9/attachment.html>


More information about the subsurface mailing list