diff options
Diffstat (limited to 'qt-models/diveplannermodel.cpp')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 7019472c7..082b5d5d4 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -995,14 +995,11 @@ bool DivePlannerPointsModel::tankInUse(int cylinderid) const void DivePlannerPointsModel::clear() { - bool oldrec = std::exchange(recalc, false); - + cylinders.clear(); + preserved_until.seconds = 0; beginResetModel(); divepoints.clear(); endResetModel(); - cylinders.clear(); - preserved_until.seconds = 0; - recalc = oldrec; } void DivePlannerPointsModel::createTemporaryPlan() |