mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
only fill in intervals if the RideFile hasn't already
This commit is contained in:
@@ -154,7 +154,7 @@ RideFile *RideFileFactory::openRideFile(QFile &file,
|
||||
RideFileReader *reader = readFuncs_.value(suffix.toLower());
|
||||
assert(reader);
|
||||
RideFile *result = reader->openRideFile(file, errors);
|
||||
if (result)
|
||||
if (result && result->intervals().empty())
|
||||
result->fillInIntervals();
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user