aboutsummaryrefslogtreecommitdiffstats
path: root/core/divesite.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-03-27 09:22:11 +0100
committerGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-07 00:13:35 +0200
commit4e8a838f746d7319b97b56a209651a65655aca7f (patch)
tree47fad5a73fd53063d3cb7f384ef7fbf15fb26915 /core/divesite.h
parent5b65776e4313bb088e3eb3dcb1e8d5732be3b1d0 (diff)
downloadsubsurface-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