RideFileCache dbaccess thread ...again

Need to call getWeight() in the RideFileCache when it
opens the ride there rather than in MetricAggregator.

Oopsie.
This commit is contained in:
Mark Liversedge
2013-05-19 19:45:43 +01:00
parent 1aadc19f36
commit d28f29dd71

View File

@@ -102,6 +102,7 @@ RideFileCache::RideFileCache(MainWindow *main, QString fileName, RideFile *passe
ride = RideFileFactory::instance().openRideFile(main, file, errors);
if (ride) {
ride->getWeight(); // before threads are created
refreshCache();
delete ride;
}