Honor "last stop at 6m" in dive planner

And recalculate the dive when it changes.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-11-10 06:08:42 +09:00
parent 2a0f1fcf4e
commit 44c9316f14

View file

@ -1085,6 +1085,8 @@ void DivePlannerPointsModel::setSurfacePressure(int pressure)
void DivePlannerPointsModel::setLastStop6m(bool value) 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) void DivePlannerPointsModel::setStartTime(const QTime& t)