mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Planner: assign a dive number if the right number seems obvious
Use the same logic as we do for newly added dives. As a side effect this patch appears to fix the issues with getting the newly planned dive selected. Fixes #692 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
88fe28636e
commit
0f1381f160
4 changed files with 16 additions and 4 deletions
|
@ -37,6 +37,7 @@ extern void find_new_trip_start_time(dive_trip_t *trip);
|
|||
extern struct dive *first_selected_dive();
|
||||
extern struct dive *last_selected_dive();
|
||||
extern bool is_trip_before_after(struct dive *dive, bool before);
|
||||
extern void set_dive_nr_for_current_dive();
|
||||
|
||||
#ifdef DEBUG_TRIP
|
||||
extern void dump_selection(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue