aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/diveplannermodel.cpp10
-rw-r--r--qt-models/diveplannermodel.h1
2 files changed, 1 insertions, 10 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();
diff --git a/qt-models/diveplannermodel.h b/qt-models/diveplannermodel.h
index 178eaed94..b1f37d70d 100644
--- a/qt-models/diveplannermodel.h
+++ b/qt-models/diveplannermodel.h
@@ -41,7 +41,6 @@ public:
bool isPlanner() const;
void createSimpleDive(struct dive *d);
Mode currentMode() const;
- bool recalcQ() const;
bool tankInUse(int cylinderid) const;
CylindersModel *cylindersModel();