mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-13 12:42:20 +00:00
CP Plot Tests honor sport settings
In Activities view we filter bests (and now tests) to match the selected activity sport.
This commit is contained in:
@@ -1076,7 +1076,8 @@ CPPlot::plotTests(RideItem *rideitem)
|
||||
|
||||
foreach(RideItem *r, context->athlete->rideCache->rides()) {
|
||||
// does it match ?
|
||||
if (spec.pass(r)) rides << r;
|
||||
if ((r->isSwim == isSwim) && (r->isRun == isRun) && spec.pass(r))
|
||||
rides << r;
|
||||
}
|
||||
|
||||
foreach (RideItem *item, rides) {
|
||||
|
||||
Reference in New Issue
Block a user