summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-04 11:40:02 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-04 11:40:02 -0700
commitcc86d68c86110bb16b5a75dbd50d35dca39c0719 (patch)
tree30d900cfdc85685b7c9d975b626e281222e1a092 /qt-ui/diveplanner.cpp
parentd4e37453704edf433a28f457d25c608d8eac1bd3 (diff)
downloadsubsurface-cc86d68c86110bb16b5a75dbd50d35dca39c0719.tar.gz
Planner: don't set cylinder start and end pressure when adding dive
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 78bcff19d..0bc9a1271 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -143,7 +143,7 @@ void DivePlannerPointsModel::setupCylinders()
// take the used cylinders from the selected dive as starting point
CylindersModel::instance()->copyFromDive(current_dive);
copy_cylinders(current_dive, &displayed_dive, true);
- reset_cylinders(&displayed_dive);
+ reset_cylinders(&displayed_dive, true);
return;
}
if (!same_string(prefs.default_cylinder, "")) {
@@ -154,7 +154,7 @@ void DivePlannerPointsModel::setupCylinders()
displayed_dive.cylinder[0].type.size.mliter = 11100;
displayed_dive.cylinder[0].type.workingpressure.mbar = 207000;
}
- reset_cylinders(&displayed_dive);
+ reset_cylinders(&displayed_dive, false);
CylindersModel::instance()->copyFromDive(&displayed_dive);
}