Implement manual setting of depth

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-02-25 20:06:47 -08:00
parent 74b542ee60
commit 03eef5b0c2
2 changed files with 14 additions and 2 deletions

View file

@ -76,6 +76,7 @@ void DivePlannerPointsModel::loadFromDive(dive *d)
duration_t lastrecordedtime = {};
duration_t newtime = {};
free_dps(&diveplan);
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