diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-28 22:16:15 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-28 22:16:15 -0700 |
commit | b37422c4478825f679e05cb19ed22184b6172d44 (patch) | |
tree | c9ef3e9d4cfe8870bd7033bceda2cce6988a06ec /planner.c | |
parent | 03eba8f99d414d455b2ce04d8a04bd8177bd0358 (diff) | |
download | subsurface-b37422c4478825f679e05cb19ed22184b6172d44.tar.gz |
Planner: record the new dive at the correct time
We don't want to do this when calling plan() from createTemporaryPlan() -
we only want to record the dive at the end of createPlan().
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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: |