mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't clear plan when (re-) planning
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
798965c10d
commit
527c622c94
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue