aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-28 17:01:18 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-28 17:01:18 -0700
commit412317c91ff5212ea5e53fc4fd12cfdae4c04571 (patch)
tree491add23fd4e771faaabbfb31b1acc9b7bd90f16 /qt-ui/diveplanner.h
parent5afabfc9eb0a09539e97b15c24f92290549ccea9 (diff)
downloadsubsurface-412317c91ff5212ea5e53fc4fd12cfdae4c04571.tar.gz
Planner: set up a cylinder, even if no current dive is selected
If there was no current dive we didn't set up any cylinder at all which was a bit awkward as we use AIR but have no cylinder corresponding to it, which breaks assumptions elsewhere. Instead we use either the default cylinder or make one up. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r--qt-ui/diveplanner.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index 4aa5f0094..a281b7634 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -48,7 +48,7 @@ public:
void rememberTanks();
bool tankInUse(int o2, int he);
void copyCylinders(struct dive *d);
- void copyCylindersFrom(struct dive *d);
+ void setupCylinders();
/**
* @return the row number.
*/