summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-12-04 20:56:18 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-04 16:27:46 -0600
commit8b371cf8c67dc9c8e3e46b6bb04bb4fa0aa005ad (patch)
tree6ad135f9c9f7c1837438860dbe6e4dd608d30efa /qt-ui/diveplanner.cpp
parent236b1d08ed2fe9fbc30055e06736a61d7aaa4e84 (diff)
downloadsubsurface-8b371cf8c67dc9c8e3e46b6bb04bb4fa0aa005ad.tar.gz
Copy all cylinders when (re)planning a dive
This changes the code so we include all the cylinders from a previous dive when we re-plain a dive. Otherwise we would have a hole in the cylinders table when we plan a dive based on a dive where we have unused cylinders, and it makes more sense to copy all of them rather than not. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 84dec0c9a..fabc11ed7 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -138,7 +138,7 @@ void DivePlannerPointsModel::setupCylinders()
if (mode == PLAN && current_dive) {
// take the used cylinders from the selected dive as starting point
CylindersModel::instance()->copyFromDive(current_dive);
- copy_cylinders(current_dive, &displayed_dive, true);
+ copy_cylinders(current_dive, &displayed_dive, false);
reset_cylinders(&displayed_dive, true);
return;
}