mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Import Name element from fitlog files
Also fixes a (likely) typo when downloading from sporttracks.mobi Fixes #4212
This commit is contained in:
@@ -338,7 +338,7 @@ SportTracks::readFileCompleted()
|
||||
}
|
||||
|
||||
// location => route
|
||||
if (!ride["name"].isNull()) ret->setTag("Objectives", ride["name"].toString());
|
||||
if (!ride["name"].isNull()) ret->setTag("Objective", ride["name"].toString());
|
||||
if (!ride["notes"].isNull()) ret->setTag("Notes", ride["notes"].toString());
|
||||
if (!ride["location_name"].isNull()) ret->setTag("Route", ride["location_name"].toString());
|
||||
|
||||
|
||||
@@ -227,6 +227,10 @@ FitlogParser::endElement( const QString&, const QString&, const QString& qName)
|
||||
}
|
||||
rideFile->setRecIntSecs(populardelta);
|
||||
|
||||
} else if (qName == "Name") {
|
||||
|
||||
rideFile->setTag("Objective", buffer);
|
||||
|
||||
} else if (qName == "Notes") {
|
||||
|
||||
rideFile->setTag("Notes", buffer);
|
||||
|
||||
Reference in New Issue
Block a user