[PATCH 2/4] Actually set the setpoints to the OSTC3

Anton Lundin glance at acc.umu.se
Thu Oct 9 22:34:13 PDT 2014


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 <glance at acc.umu.se>
---
 qt-ui/configuredivecomputerdialog.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/qt-ui/configuredivecomputerdialog.cpp b/qt-ui/configuredivecomputerdialog.cpp
index 109ac3a..cfc1b8d 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()
-- 
1.9.1



More information about the subsurface mailing list