mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
19ca90f1a0
commit
71b6de0523
1 changed files with 2 additions and 1 deletions
|
@ -869,7 +869,8 @@ void select_dives_in_trip(struct dive_trip *trip)
|
||||||
if (!trip)
|
if (!trip)
|
||||||
return;
|
return;
|
||||||
for (dive = trip->dives; dive; dive = dive->next)
|
for (dive = trip->dives; dive; dive = dive->next)
|
||||||
select_dive(get_divenr(dive));
|
if (!dive->hidden_by_filter)
|
||||||
|
select_dive(get_divenr(dive));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This only gets called with non-NULL trips.
|
/* This only gets called with non-NULL trips.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue