summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-10 06:08:42 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-10 06:08:42 +0900
commit44c9316f14f9be21837583739e8d54e9c6d29569 (patch)
tree59d22609a094516a15149962fe6a5d1fa142cd81 /qt-ui/diveplanner.cpp
parent2a0f1fcf4e3a4edd1edb6f4477e83da4b2401eb1 (diff)
downloadsubsurface-44c9316f14f9be21837583739e8d54e9c6d29569.tar.gz
Honor "last stop at 6m" in dive planner
And recalculate the dive when it changes. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index b9e138a2c..d7522b505 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -1085,6 +1085,8 @@ void DivePlannerPointsModel::setSurfacePressure(int pressure)
void DivePlannerPointsModel::setLastStop6m(bool value)
{
+ set_last_stop(value);
+ emit dataChanged(createIndex(0, 0), createIndex(rowCount()-1, COLUMNS-1));
}
void DivePlannerPointsModel::setStartTime(const QTime& t)