diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-11-11 13:40:36 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-11 13:40:36 -0800 |
commit | 71b6de05238907dfa602cd583c5904dd7e6cb8fc (patch) | |
tree | e82b08b74cbcdf3e463e51ea3b7dabc3ca43f383 | |
parent | 19ca90f1a0ab8bad7488bf03e6248c8a8c8ff7e0 (diff) | |
download | subsurface-71b6de05238907dfa602cd583c5904dd7e6cb8fc.tar.gz |
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>
-rw-r--r-- | divelist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/divelist.c b/divelist.c index 9034007b7..ad0c2e716 100644 --- a/divelist.c +++ b/divelist.c @@ -869,7 +869,8 @@ void select_dives_in_trip(struct dive_trip *trip) if (!trip) return; 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. |