From 44c9316f14f9be21837583739e8d54e9c6d29569 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 10 Nov 2013 06:08:42 +0900 Subject: Honor "last stop at 6m" in dive planner And recalculate the dive when it changes. Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui') 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) -- cgit v1.2.3-70-g09d2