Skip to content
Permalink
Browse files

CSV : ibike note can have ","

fix #868
  • Loading branch information...
grauser committed May 14, 2019
1 parent 7cb7249 commit 3f4b7a64e32a0ec32dc5bef287740065f271b1a7
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/FileIO/CsvRideFile.cpp
@@ -450,6 +450,18 @@ RideFile *CsvFileReader::openRideFile(QFile &file, QStringList &errors, QList<Ri
// the trailing zeroes in the configuration area seem to be causing an error
// the number is in the format 5.000000
recInterval = (int)line.section(',',4,4).toDouble();


if (line.section(',',18).startsWith('"')) {
// We have a note
// note can have ","
QString notes = line.section(',',18).section('"',1,1);
qDebug()<<notes;
line.remove(notes);
rideFile->setTag("Notes", notes);
}


rideFile->setDeviceType(line.section(',',26,26));
rideFile->setTag("Device Info", line.section(',',20,21).remove(QChar('"')));

0 comments on commit 3f4b7a6

Please sign in to comment.
You can’t perform that action at this time.