diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-03-05 12:07:11 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-05 12:12:49 -0800 |
commit | 527c622c940f1ddfb4b48fef6b84f4bca8d17ecb (patch) | |
tree | df0947b55ffda55dfb09f8cc184865606d653d19 /qt-models | |
parent | 798965c10ddb18de29646ec8d50bb9ac73e2f685 (diff) | |
download | subsurface-527c622c940f1ddfb4b48fef6b84f4bca8d17ecb.tar.gz |
Don't clear plan when (re-) planning
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index a937de9ac..616f1dadc 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -76,7 +76,8 @@ void DivePlannerPointsModel::loadFromDive(dive *d) duration_t lastrecordedtime = {}; duration_t newtime = {}; free_dps(&diveplan); - clear(); + if (mode != PLAN) + clear(); diveplan.when = d->when; // is this a "new" dive where we marked manually entered samples? // if yes then the first sample should be marked |