From 54871debfbd6d36ddc16deeca7124553256c5608 Mon Sep 17 00:00:00 2001 From: Rick Walsh Date: Wed, 6 Jul 2016 22:40:38 +1000 Subject: Planner: update maxdepth and best mixes when profile changed by mouse Signed-off-by: Rick Walsh Signed-off-by: Dirk Hohndel --- qt-models/diveplannermodel.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-models') diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 0364a596b..f325d2af5 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)); } -- cgit v1.2.3-70-g09d2