diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-11-23 15:18:59 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-01-09 20:58:04 -0800 |
commit | f8327ed51bc2298e2c7ef69a1ef0f82509e8d8d4 (patch) | |
tree | 932758970f9967a25d7958ad830cd0ab08594a00 /core/divelist.h | |
parent | 7923507e76e8d64c6c457664ec59f10c884a9fb0 (diff) | |
download | subsurface-f8327ed51bc2298e2c7ef69a1ef0f82509e8d8d4.tar.gz |
Core: move autogroup() into divelist.c
After loading or importing, the caller usually called autogroup()
to autogroup dives if so wished by the user. This has already led
to bugs, when autogroup() was forgotten.
Instead, call autogroup() directly in the process_loaded_dives()
and process_imported_dives() functions. Not only does this prevent
forgetting the call - it also means that autogrouping can be
changed without changing every caller.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.h')
-rw-r--r-- | core/divelist.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/divelist.h b/core/divelist.h index d926886b6..c276c941a 100644 --- a/core/divelist.h +++ b/core/divelist.h @@ -35,7 +35,6 @@ extern dive_trip_t *create_trip_from_dive(struct dive *dive); extern dive_trip_t *create_and_hookup_trip_from_dive(struct dive *dive); extern dive_trip_t *get_dives_to_autogroup(int start, int *from, int *to, bool *allocated); extern dive_trip_t *get_trip_for_new_dive(struct dive *new_dive, bool *allocated); -extern void autogroup_dives(void); extern bool consecutive_selected(); extern void select_dive(struct dive *dive); extern void deselect_dive(struct dive *dive); |