From f961ec7a8b399683b5b9aedc56827fa307511487 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 2 May 2020 14:41:52 +0200 Subject: 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 --- core/selection.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/selection.h') 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); -- cgit v1.2.3-70-g09d2