summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-15 17:33:21 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-15 17:35:29 -0800
commit348c590ac62a00af565f07163b76293126257b20 (patch)
treea78715186786e52dba166aed95e82b61ab18d411 /planner.c
parentdb8de4233d90f4cd111163c012a0d89e1cdbc45c (diff)
downloadsubsurface-348c590ac62a00af565f07163b76293126257b20.tar.gz
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>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/planner.c b/planner.c
index 65d86f7e3..16813caed 100644
--- a/planner.c
+++ b/planner.c
@@ -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);