mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user