From 527c622c940f1ddfb4b48fef6b84f4bca8d17ecb Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 5 Mar 2017 12:07:11 -0800 Subject: Don't clear plan when (re-) planning Signed-off-by: Dirk Hohndel --- qt-models/diveplannermodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-models/diveplannermodel.cpp') 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 -- cgit v1.2.3-70-g09d2