diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-05-02 14:41:52 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-03 15:02:21 -0700 |
commit | f961ec7a8b399683b5b9aedc56827fa307511487 (patch) | |
tree | 5723cc305f2a6252dbc3b681af0643b32e0176e3 /core/selection.h | |
parent | 09b7fcbcf4e26d19529486ddd2a0e672e60dce32 (diff) | |
download | subsurface-f961ec7a8b399683b5b9aedc56827fa307511487.tar.gz |
selection: introduce clear_selection() function
The DiveListView would touch the selection-innards directly.
Let's encapsulate that. Moreover, take care to reset the trip
selection when resetting the core data.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/selection.h')
-rw-r--r-- | core/selection.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/selection.h b/core/selection.h index 55055de4a..beab31eaf 100644 --- a/core/selection.h +++ b/core/selection.h @@ -23,6 +23,7 @@ extern void select_newest_visible_dive(); extern void select_single_dive(struct dive *d); // wrapper for setSelection() with a single dive. NULL clears the selection. extern void select_trip(struct dive_trip *trip); extern void deselect_trip(struct dive_trip *trip); +extern void clear_selection(void); #if DEBUG_SELECTION_TRACKING extern void dump_selection(void); |