mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mark divelist as changed if user accepts planned dive
When the user clicks OK in the dive planner and the dive is added to the divelist the divelist needs to be marked as changed so Subsurface prompts the user to save the file before quitting. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
db8de4233d
commit
348c590ac6
1 changed files with 1 additions and 0 deletions
|
@ -618,6 +618,7 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep)
|
|||
add_plan_to_notes(diveplan, dive);
|
||||
/* now make the dive visible in the dive list */
|
||||
report_dives(FALSE, FALSE);
|
||||
mark_divelist_changed(TRUE);
|
||||
show_and_select_dive(dive);
|
||||
free(stoplevels);
|
||||
free(gaschanges);
|
||||
|
|
Loading…
Add table
Reference in a new issue