RideCache refresh on addRide

.. but only refreshes the ride added rather than looking everywhere.
   So, when we are importing large numbers of activities it won't
   repeatedly run a full refresh (which was bonkers).
This commit is contained in:
Mark Liversedge
2014-12-09 13:59:10 +00:00
parent 98dc3448cf
commit 2cc47da374

View File

@@ -121,7 +121,7 @@ RideCache::addRide(QString name, bool dosignal)
qSort(rides_); // sort by date
// refresh metrics for *this ride only*
// XXX not implemented yet XXX
last->refresh();
if (dosignal) context->notifyRideAdded(last); // here so emitted BEFORE rideSelected is emitted!