Dive list and filter: when selecting a trip, only select visible dives

Otherwise dives that aren't shown to the user would be included in
statistics or (worse) in edit operations.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-11-11 13:40:36 -08:00
parent 19ca90f1a0
commit 71b6de0523

View file

@ -869,6 +869,7 @@ void select_dives_in_trip(struct dive_trip *trip)
if (!trip)
return;
for (dive = trip->dives; dive; dive = dive->next)
if (!dive->hidden_by_filter)
select_dive(get_divenr(dive));
}