aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-26 13:23:52 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-26 13:23:52 -0700
commit42c54e7b7e202edcc6a568c4e91f1e973af0e208 (patch)
tree0f34c598da7d72a7acd893d74b4f01ca30b381a0
parent660235c9b7cc719f3ba11c2eecceec18fab3cb54 (diff)
downloadsubsurface-42c54e7b7e202edcc6a568c4e91f1e973af0e208.tar.gz
Planner: copy samples and events for plan and add
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/diveplanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index a7f97ebe2..9edaac56a 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -776,7 +776,7 @@ void DivePlannerPointsModel::createTemporaryPlan()
#endif
if (plannerModel->recalcQ())
plan(&diveplan, &cache, &tempDive, isPlanner());
- if (mode == ADD) {
+ if (mode == ADD || mode == PLAN) {
// copy the samples and events, but don't overwrite the cylinders
copy_samples(tempDive, current_dive);
copy_events(tempDive, current_dive);