aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/qthelper.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index 41c9d310b..b597921b6 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -1529,6 +1529,7 @@ int parse_seabear_header(const char *filename, char **params, int pnr)
break;
}
}
+ f.seek(0);
/*
* Parse header - currently only interested in sample
@@ -1543,6 +1544,7 @@ int parse_seabear_header(const char *filename, char **params, int pnr)
break;
}
}
+ f.seek(0);
/*
* Grab the sample interval
@@ -1555,6 +1557,7 @@ int parse_seabear_header(const char *filename, char **params, int pnr)
break;
}
}
+ f.seek(0);
/*
* Dive mode, can be: OC, APNEA, BOTTOM TIMER, CCR, CCR SENSORBOARD
@@ -1568,6 +1571,10 @@ int parse_seabear_header(const char *filename, char **params, int pnr)
params[pnr++] = strdup(parseLine.replace(needle, QString::fromLatin1("")).prepend("\"").append("\"").toUtf8().data());
}
}
+ f.seek(0);
+
+ while ((parseLine = f.readLine().trimmed()).length() > 0 && !f.atEnd()) {
+ }
/*
* Parse CSV fields