diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-11-17 18:32:35 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-11-19 21:13:40 -0800 |
commit | 9ffafbc326b38bd2d0bb870fa4721b6c94280c28 (patch) | |
tree | d4ebf99b7c0320abdf1cf17bbf3ddbf4e5fd2f8b /core/divelist.h | |
parent | b76f2071589d6a7f45ec2845afa8b49110da608b (diff) | |
download | subsurface-9ffafbc326b38bd2d0bb870fa4721b6c94280c28.tar.gz |
Filter: move num_shown logic from model to core
Since the number of shown dives is stored in the core, let's also
keep it updated there.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.h')
-rw-r--r-- | core/divelist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/divelist.h b/core/divelist.h index c0f70ccb6..efab389ee 100644 --- a/core/divelist.h +++ b/core/divelist.h @@ -44,7 +44,7 @@ extern int remove_dive(const struct dive *dive, struct dive_table *table); extern bool consecutive_selected(); extern void select_dive(struct dive *dive); extern void deselect_dive(struct dive *dive); -extern void filter_dive(struct dive *d, bool shown); +extern bool filter_dive(struct dive *d, bool shown); /* returns true if status changed */ extern struct dive *first_selected_dive(); extern struct dive *last_selected_dive(); extern int get_dive_nr_at_idx(int idx); |