There was a typo, restoring gas2 over gas1.

Signed-off-by: Anton Lundin <[email protected]>
---
 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

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to