summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-11 13:34:12 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-11 13:34:12 -0800
commit19ca90f1a0ab8bad7488bf03e6248c8a8c8ff7e0 (patch)
tree95a9bc80e3db55d011d13498c0afad6359506edf /dive.h
parentd5ffc16c362ce8f2f353f3c4880ecd689c9ea7ee (diff)
downloadsubsurface-19ca90f1a0ab8bad7488bf03e6248c8a8c8ff7e0.tar.gz
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>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index 43c322e63..70c418706 100644
--- a/dive.h
+++ b/dive.h
@@ -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;