diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-26 07:48:22 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-04-02 13:53:23 -0700 |
commit | 1ec0790d504d8a9d5e6694afff04f9ae92d01af8 (patch) | |
tree | c799e7bdd7e20303f1030f771058c3561441e409 /profile-widget | |
parent | e419ebf55a28d2483951e52ca274aedd96f11789 (diff) | |
download | subsurface-1ec0790d504d8a9d5e6694afff04f9ae92d01af8.tar.gz |
planner: remove displayed_dive from DivePlannerModel
To remove global state, make the dive that DivePlannerModel
works on a member variable. Pass the dive in createSimpleDive()
and loadFromDive(). Moreover, this should pave the way to more
fine-grained undo in the planner. Ultimately, the planner
should not be modal.
Attention: for now, the dive must still be displayed_dive,
because of the convoluted way in which the profile and the
planner work on the same dive.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget')
0 files changed, 0 insertions, 0 deletions