From f3484d1148318160330ab8d0a84ff9be905344c1 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Fri, 10 Oct 2014 07:34:13 +0200 Subject: Actually set the setpoints to the OSTC3 The setpoints filled in into the ui where never set on the devicedetails object so they where never propagated to backup or write settings. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/configuredivecomputerdialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qt-ui/configuredivecomputerdialog.cpp b/qt-ui/configuredivecomputerdialog.cpp index 109ac3a9f..cfc1b8d54 100644 --- a/qt-ui/configuredivecomputerdialog.cpp +++ b/qt-ui/configuredivecomputerdialog.cpp @@ -228,6 +228,12 @@ void ConfigureDiveComputerDialog::populateDeviceDetails() sp5.sp = ui->ostc3SetPointTable->item(4, 1)->text().toInt(); sp5.depth = ui->ostc3SetPointTable->item(4, 2)->text().toInt(); + + deviceDetails->setSp1(sp1); + deviceDetails->setSp2(sp2); + deviceDetails->setSp3(sp3); + deviceDetails->setSp4(sp4); + deviceDetails->setSp5(sp5); } void ConfigureDiveComputerDialog::readSettings() -- cgit v1.2.3-70-g09d2