XSLT parsing treats this as numeric value, thus we need to strip out the
" s" part.

Signed-off-by: Miika Turkia <[email protected]>
---
 qt-ui/divelogimportdialog.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp
index 59edd2c..2bd72b0 100644
--- a/qt-ui/divelogimportdialog.cpp
+++ b/qt-ui/divelogimportdialog.cpp
@@ -398,7 +398,7 @@ void DiveLogImportDialog::loadFileContents(int value, 
whatChanged triggeredBy)
 
                while ((firstLine = f.readLine()).length() > 3 && !f.atEnd()) {
                        if (firstLine.contains("//Log interval: "))
-                               delta = 
firstLine.remove(QString::fromLatin1("//Log interval: ")).trimmed();
+                               delta = 
firstLine.remove(QString::fromLatin1("//Log interval: 
")).trimmed().remove(QString::fromLatin1(" s"));
                }
 
                /*
-- 
2.1.4

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to