[PATCH 03/13] Bugfix restore gas settings from xml

Anton Lundin glance at acc.umu.se
Fri Oct 17 15:33:37 PDT 2014


There was a typo, restoring gas2 over gas1.

Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 configuredivecomputer.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configuredivecomputer.cpp b/configuredivecomputer.cpp
index addc2a7..2a7a8d9 100644
--- a/configuredivecomputer.cpp
+++ b/configuredivecomputer.cpp
@@ -257,7 +257,7 @@ bool ConfigureDiveComputer::restoreXMLBackup(QString fileName, DeviceDetails *de
 				gas2.helium = gasData.at(1).toInt();
 				gas2.type = gasData.at(2).toInt();
 				gas2.depth = gasData.at(3).toInt();
-				details->setGas1(gas2);
+				details->setGas2(gas2);
 			}
 
 			if (settingName == "Gas3") {
-- 
1.9.1



More information about the subsurface mailing list