From a8097df666bf2b9d6d221f86cc124ecda4ebd7ba Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Sat, 18 Oct 2014 00:33:37 +0200 Subject: Bugfix restore gas settings from xml There was a typo, restoring gas2 over gas1. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- configuredivecomputer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuredivecomputer.cpp b/configuredivecomputer.cpp index addc2a728..2a7a8d95c 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") { -- cgit v1.2.3-70-g09d2