diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-03-27 09:22:11 +0100 |
---|---|---|
committer | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-07 00:13:35 +0200 |
commit | 4e8a838f746d7319b97b56a209651a65655aca7f (patch) | |
tree | 47fad5a73fd53063d3cb7f384ef7fbf15fb26915 /core/divesite.h | |
parent | 5b65776e4313bb088e3eb3dcb1e8d5732be3b1d0 (diff) | |
download | subsurface-4e8a838f746d7319b97b56a209651a65655aca7f.tar.gz |
undo: store all cylinders in EditCylinderBase
We stored only one cylinder in EditCylinderBase, which is the
base class of RemoveCylinder and EditCylinder. This turns out
to be too crude: when removing the "same" cylinder from
multiple dives, there are some "hidden variables" such as
bestmix_o2 or manually_added, which might actually be different.
We don't want to overwrite those on undo of delete.
Moreover, the cylinder edit is way too crude at the moment,
as it overwrites the whole cylinder even when the user edited
only a single field. To enable a more refined edit, we have
to store each changed cylinder.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divesite.h')
0 files changed, 0 insertions, 0 deletions