diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-11-17 16:23:00 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-11-19 21:13:40 -0800 |
commit | 2d09819ddfc6bbb4eb9bd7127485f42c839fd85b (patch) | |
tree | 9cdd417a2f266faaec73a9a2bfe5f599ac60a82f /core/divelist.c | |
parent | cbd98edb73e26b3b3d9068823d9155c61cb3a9b2 (diff) | |
download | subsurface-2d09819ddfc6bbb4eb9bd7127485f42c839fd85b.tar.gz |
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>
Diffstat (limited to 'core/divelist.c')
-rw-r--r-- | core/divelist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/divelist.c b/core/divelist.c index a9ce0d7a3..4367b8708 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -899,6 +899,7 @@ void deselect_dive(struct dive *dive) } } +int shown_dives = 0; void filter_dive(struct dive *d, bool shown) { if (!d) |