diff options
Diffstat (limited to 'divelist.c')
-rw-r--r-- | divelist.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/divelist.c b/divelist.c index a3207b02c..e600a6cd2 100644 --- a/divelist.c +++ b/divelist.c @@ -846,6 +846,24 @@ void deselect_dive(int idx) } } +void deselect_dives_in_trip(struct dive_trip *trip) +{ + struct dive *dive; + if (!trip) + return; + for (dive = trip->dives; dive; dive = dive->next) + deselect_dive(get_divenr(dive)); +} + +void select_dives_in_trip(struct dive_trip *trip) +{ + struct dive *dive; + if (!trip) + return; + for (dive = trip->dives; dive; dive = dive->next) + select_dive(get_divenr(dive)); +} + void mark_divelist_changed(int changed) { dive_list_changed = changed; |