From a03757801583ee8fa637b1a236b70554a033bfde Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sat, 8 Sep 2018 16:44:51 +0200 Subject: core/settings: change bestmixend to int, to allow qml to work depth_t is a good struct in C, but bad in QML. Signed-off-by: Jan Iversen --- desktop-widgets/diveplanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp index 26e8c446a..bda612431 100644 --- a/desktop-widgets/diveplanner.cpp +++ b/desktop-widgets/diveplanner.cpp @@ -647,7 +647,7 @@ void PlannerSettingsWidget::setDecoPo2(double po2) void PlannerSettingsWidget::setBestmixEND(int depth) { - qPrefDivePlanner::instance()->set_bestmixend(units_to_depth(depth)); + qPrefDivePlanner::instance()->set_bestmixend(units_to_depth(depth).mm); } void PlannerSettingsWidget::setBackgasBreaks(bool dobreaks) -- cgit v1.2.3-70-g09d2