From cc86d68c86110bb16b5a75dbd50d35dca39c0719 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 4 Jul 2014 11:40:02 -0700 Subject: Planner: don't set cylinder start and end pressure when adding dive Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui') 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); } -- cgit v1.2.3-70-g09d2