summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2016-07-06 22:40:38 +1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-07-09 12:08:52 -0700
commit54871debfbd6d36ddc16deeca7124553256c5608 (patch)
treeac791256faea7ef46b18e1ebd4845df005aca4e6 /qt-models
parentbb3151795188fc5ef53053ce004dc1d1f2de63a1 (diff)
downloadsubsurface-54871debfbd6d36ddc16deeca7124553256c5608.tar.gz
Planner: update maxdepth and best mixes when profile changed by mouse
Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/diveplannermodel.cpp2
1 files changed, 2 insertions, 0 deletions
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));
}