Don't clear plan when (re-) planning

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-03-05 12:07:11 -08:00
parent 798965c10d
commit 527c622c94

View file

@ -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