mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Filter: move number of shown dives to core
We mark hidden/shown dives in the core but store the number of shown dives in the MultiFilterSortModel. Move this datum to the core for improved locality. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
cbd98edb73
commit
2d09819ddf
5 changed files with 10 additions and 10 deletions
|
|
@ -899,6 +899,7 @@ void deselect_dive(struct dive *dive)
|
|||
}
|
||||
}
|
||||
|
||||
int shown_dives = 0;
|
||||
void filter_dive(struct dive *d, bool shown)
|
||||
{
|
||||
if (!d)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue