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>
This commit is contained in:
jan Iversen 2018-09-08 16:44:51 +02:00 committed by Dirk Hohndel
parent c0b78d69d9
commit a037578015
5 changed files with 14 additions and 21 deletions

View file

@ -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)