Embed the information whether a dive is hidden by a filter in the dive

This way other parts of the code can act on the "hidden_by_filter" state.

This also cleans up the way we track if a dive is hidden - do it in the
multi filter instead of the individual filters.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-11-11 13:34:12 -08:00
parent d5ffc16c36
commit 19ca90f1a0
3 changed files with 70 additions and 47 deletions

3
dive.h
View file

@ -306,7 +306,8 @@ struct dive {
tripflag_t tripflag;
dive_trip_t *divetrip;
struct dive *next, **pprev;
int selected;
bool selected;
bool hidden_by_filter;
bool downloaded;
timestamp_t when;
char *location;