From 03eef5b0c2c1bb2d4ebfd6727b61d38cd640ba3f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 25 Feb 2017 20:06:47 -0800 Subject: Implement manual setting of depth Signed-off-by: Dirk Hohndel --- qt-models/diveplannermodel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-models') 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 -- cgit v1.2.3-70-g09d2