mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Simplistic filtering by tags
This only allows for a logical "AND" - so only dives that all of the selected tags are displayed. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2aabcf398a
commit
d5af4e2ff9
3 changed files with 9 additions and 2 deletions
|
@ -695,7 +695,8 @@ static void fill_dive_list(void)
|
|||
while (--i >= 0) {
|
||||
struct dive *dive = get_dive(i);
|
||||
dive_trip_t *trip;
|
||||
if ((dive->dive_tags & DTAG_INVALID) && !prefs.display_invalid_dives)
|
||||
if (((dive->dive_tags & DTAG_INVALID) && !prefs.display_invalid_dives) ||
|
||||
(dive->dive_tags & dive_mask) != dive_mask)
|
||||
continue;
|
||||
trip = dive->divetrip;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue