aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/diveplannermodel.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-02-27 22:16:46 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-04-02 13:53:23 -0700
commitcbee716316f90f483c272431e1fb766816532b09 (patch)
tree63791a3afeafcdec7081394ee43518dbdfd82208 /qt-models/diveplannermodel.cpp
parent77a6bc6d623148632d247048b254e8b8b40c9ab1 (diff)
downloadsubsurface-cbee716316f90f483c272431e1fb766816532b09.tar.gz
planner: don't export recalc flag of DivePlannerPointsModel
This is not queried anymore, so remove the accessor function. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/diveplannermodel.cpp')
-rw-r--r--qt-models/diveplannermodel.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp
index 3cdf3f70b..c8da6e6a7 100644
--- a/qt-models/diveplannermodel.cpp
+++ b/qt-models/diveplannermodel.cpp
@@ -255,14 +255,6 @@ bool DivePlannerPointsModel::isPlanner() const
return mode == PLAN;
}
-/* When the planner adds deco stops to the model, adding those should not trigger a new deco calculation.
- * We thus start the planner only when recalc is true. */
-
-bool DivePlannerPointsModel::recalcQ() const
-{
- return recalc;
-}
-
int DivePlannerPointsModel::columnCount(const QModelIndex&) const
{
return COLUMNS; // to disable CCSETPOINT subtract one
@@ -770,7 +762,7 @@ int DivePlannerPointsModel::addStop(int milimeters, int seconds, int cylinderid_
cylinderid = cylinderid_in;
else
usePrevious = true;
- if (recalcQ())
+ if (recalc)
removeDeco();
int row = divepoints.count();