From 29ee1896a4272627e52740b36b5a63e1cad50dd7 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Mon, 27 Oct 2014 21:54:59 +0100 Subject: Change the salinity setting for OSTC On the OSTC's the salinity is in kg/l and is stored as kg/l * 100 Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/configuredivecomputerdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui/configuredivecomputerdialog.cpp') diff --git a/qt-ui/configuredivecomputerdialog.cpp b/qt-ui/configuredivecomputerdialog.cpp index dbd2ea110..a97d1dbde 100644 --- a/qt-ui/configuredivecomputerdialog.cpp +++ b/qt-ui/configuredivecomputerdialog.cpp @@ -349,7 +349,7 @@ void ConfigureDiveComputerDialog::populateDeviceDetailsOSTC() deviceDetails->setDesaturation(ui.desaturationSpinBox_3->value()); deviceDetails->setLastDeco(ui.lastDecoSpinBox_3->value()); deviceDetails->setSamplingRate(ui.samplingRateSpinBox_3->value()); - deviceDetails->setSalinity(ui.salinitySpinBox_3->value()); + deviceDetails->setSalinity(ui.salinityDoubleSpinBox_3->value() * 100); deviceDetails->setDateFormat(ui.dateFormatComboBox_3->currentIndex()); deviceDetails->setSyncTime(ui.dateTimeSyncCheckBox_3->isChecked()); deviceDetails->setSafetyStop(ui.safetyStopCheckBox_3->isChecked()); @@ -707,7 +707,7 @@ setNumberOfDives ui.desaturationSpinBox_3->setValue(deviceDetails->desaturation()); ui.lastDecoSpinBox_3->setValue(deviceDetails->lastDeco()); ui.samplingRateSpinBox_3->setValue(deviceDetails->samplingRate()); - ui.salinitySpinBox_3->setValue(deviceDetails->salinity()); + ui.salinityDoubleSpinBox_3->setValue((double) deviceDetails->salinity() / 100.0); ui.dateFormatComboBox_3->setCurrentIndex(deviceDetails->dateFormat()); ui.safetyStopCheckBox_3->setChecked(deviceDetails->safetyStop()); ui.gfHighSpinBox_3->setValue(deviceDetails->gfHigh()); -- cgit v1.2.3-70-g09d2