diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-12 11:19:04 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-12 11:19:04 +0900 |
commit | ad4812c22e5ed9281f8a6cf4754c145a3751446a (patch) | |
tree | ef32f50f9ab4f76771944224b596682461f3ba1c /qt-ui/diveplanner.h | |
parent | d72c69db7a49fc20ea7618deaac4b125614afb12 (diff) | |
download | subsurface-ad4812c22e5ed9281f8a6cf4754c145a3751446a.tar.gz |
Make planner work again
This partially reverts changes in commit 1b655d5c806b ("Correctly track
gases when manually adding and then editing dives") as it turns out this
did NOT help us correctly track gases (which is ironic, given the title of
that commit). I didn't actually want to revert that commit as
infrastructure has changed since then and this made the patches look even
more incomprehensible.
So we are back to tracking the "gas on which we arrive at this spot" in
each dive plan node as this makes the rest of our planning so much easier
- I had forgotten about the reasons why we did things this way when I made
the above mentioned commit.
Instead we now make sure that our available tanks are added the correct
way, that such entries are ignored when planning and when drawing the
editable profile, and that at the end it all gets assembled correctly.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index 8a3d6635f..f22112d85 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -65,6 +65,7 @@ signals: private: explicit DivePlannerPointsModel(QObject* parent = 0); + bool addGas(int o2, int he); struct diveplan diveplan; Mode mode; QVector<divedatapoint> divepoints; |