diff options
author | Rick Walsh <rickmwalsh@gmail.com> | 2016-07-06 22:40:38 +1000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-07-09 12:08:52 -0700 |
commit | 54871debfbd6d36ddc16deeca7124553256c5608 (patch) | |
tree | ac791256faea7ef46b18e1ebd4845df005aca4e6 /qt-models | |
parent | bb3151795188fc5ef53053ce004dc1d1f2de63a1 (diff) | |
download | subsurface-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.cpp | 2 |
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)); } |