aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 16813caed..64e95bbef 100644
--- a/planner.c
+++ b/planner.c
@@ -618,7 +618,6 @@ 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);
@@ -1172,6 +1171,7 @@ void input_plan()
gtk_widget_show_all(planner);
if (gtk_dialog_run(GTK_DIALOG(planner)) == GTK_RESPONSE_ACCEPT) {
plan(&diveplan, &cache_data, &planned_dive);
+ mark_divelist_changed(TRUE);
} else {
if (planned_dive) {
/* we have added a dive during the dynamic construction