summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--planner.c2
-rw-r--r--qt-ui/diveplanner.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/planner.c b/planner.c
index 746a40d32..7bdb60e62 100644
--- a/planner.c
+++ b/planner.c
@@ -769,8 +769,6 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep, b
*divep = dive = create_dive_from_plan(diveplan);
if (!dive)
goto error_exit;
- record_dive(dive);
-
add_plan_to_notes(diveplan, dive);
error_exit:
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index fd6eee504..921fdf88b 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -871,6 +871,7 @@ void DivePlannerPointsModel::createPlan()
cyl->end.mbar = 0;
}
}
+ record_dive(tempDive);
mark_divelist_changed(true);
// Remove and clean the diveplan, so we don't delete