Don't clear plan when (re-) planning
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
798965c10d
commit
527c622c94
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user