summaryrefslogtreecommitdiffstats
path: root/qt-models/diveplannermodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/diveplannermodel.cpp')
-rw-r--r--qt-models/diveplannermodel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp
index bab57e0df..2dfeff7eb 100644
--- a/qt-models/diveplannermodel.cpp
+++ b/qt-models/diveplannermodel.cpp
@@ -625,6 +625,12 @@ void DivePlannerPointsModel::setMinSwitchDuration(int duration)
emitDataChanged();
}
+void DivePlannerPointsModel::setSurfaceSegment(int duration)
+{
+ qPrefDivePlanner::set_surface_segment(duration * 60);
+ emitDataChanged();
+}
+
void DivePlannerPointsModel::setStartDate(const QDate &date)
{
startTime.setDate(date);