mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
b76f207158
commit
9ffafbc326
4 changed files with 18 additions and 20 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue