diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-02-15 12:28:46 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-15 06:00:06 -0800 |
commit | ea143e96683d346aae26d8cbd210dc4f68f5f873 (patch) | |
tree | 067821b54b31a49dce3e148cf6ea9da8381832bb /qt-ui/diveplanner.cpp | |
parent | 5dfec3b7991270f98f412ff86980076ffda9d693 (diff) | |
download | subsurface-ea143e96683d346aae26d8cbd210dc4f68f5f873.tar.gz |
Use unused cylinders in planner if they are displayed
This makes prefs.display_unused_tanks also relevant for the planner.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index f535a6a98..434da1fab 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -131,9 +131,9 @@ void DivePlannerPointsModel::loadFromDive(dive *d) void DivePlannerPointsModel::setupCylinders() { if (mode == PLAN && current_dive) { - // take the used cylinders from the selected dive as starting point + // take the displayed cylinders from the selected dive as starting point CylindersModel::instance()->copyFromDive(current_dive); - copy_cylinders(current_dive, &displayed_dive, false); + copy_cylinders(current_dive, &displayed_dive, !prefs.display_unused_tanks); reset_cylinders(&displayed_dive, true); return; } |