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>
This commit is contained in:
Dirk Hohndel 2014-05-28 17:01:18 -07:00
parent 5afabfc9eb
commit 412317c91f
3 changed files with 27 additions and 10 deletions

View file

@ -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.
*/