diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-10-18 00:33:37 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-18 15:20:29 -0700 |
commit | a8097df666bf2b9d6d221f86cc124ecda4ebd7ba (patch) | |
tree | 3161ceda5e0d4b3b046d7a60c86935f4e6bd57ba | |
parent | 624f0e9b243cbca8019bb71f74073d6bbc74468e (diff) | |
download | subsurface-a8097df666bf2b9d6d221f86cc124ecda4ebd7ba.tar.gz |
Bugfix restore gas settings from xml
There was a typo, restoring gas2 over gas1.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | configuredivecomputer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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") { |