diff options
author | jan Iversen <jani@apache.org> | 2018-09-08 16:44:51 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-11 17:25:00 -0700 |
commit | a03757801583ee8fa637b1a236b70554a033bfde (patch) | |
tree | 73c715369de377a49753422e58841f34d7ec52ec /desktop-widgets/diveplanner.cpp | |
parent | c0b78d69d9860d1169d43db594f5fb242a5876a5 (diff) | |
download | subsurface-a03757801583ee8fa637b1a236b70554a033bfde.tar.gz |
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 <jani@apache.org>
Diffstat (limited to 'desktop-widgets/diveplanner.cpp')
-rw-r--r-- | desktop-widgets/diveplanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |