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