mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
bb31517951
commit
54871debfb
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue