[PATCH 11/11] Planner: update maxdepth and best mixes when profile changed by mouse
Rick Walsh
rickmwalsh at gmail.com
Wed Jul 6 05:40:38 PDT 2016
Signed-off-by: Rick Walsh <rickmwalsh at gmail.com>
---
qt-models/diveplannermodel.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp
index 0364a59..f325d2a 100644
--- a/qt-models/diveplannermodel.cpp
+++ b/qt-models/diveplannermodel.cpp
@@ -674,6 +674,8 @@ void DivePlannerPointsModel::editStop(int row, divedatapoint newData)
return;
divepoints[row] = newData;
std::sort(divepoints.begin(), divepoints.end(), divePointsLessThan);
+ if (updateMaxDepth())
+ CylindersModel::instance()->updateBestMixes();
emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1));
}
--
2.7.4
More information about the subsurface
mailing list