summaryrefslogtreecommitdiffstats
path: root/qt-models/diveplannermodel.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-25 20:06:47 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-04 12:16:49 -0800
commit03eef5b0c2c1bb2d4ebfd6727b61d38cd640ba3f (patch)
tree31fa9acbca8cff5df4351ca42e677013d34b1513 /qt-models/diveplannermodel.cpp
parent74b542ee60887c3fda348212a0b35720b6e49548 (diff)
downloadsubsurface-03eef5b0c2c1bb2d4ebfd6727b61d38cd640ba3f.tar.gz
Implement manual setting of depth
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/diveplannermodel.cpp')
-rw-r--r--qt-models/diveplannermodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp
index 962bbaa57..7262cf313 100644
--- a/qt-models/diveplannermodel.cpp
+++ b/qt-models/diveplannermodel.cpp
@@ -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