mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
If we clear out our dive data, we also need to clear out the undo stack because it otherwise will refer to dives that no longer exist. The cleanest way to do that would be to do it in the same function used to clear the dive data. Which causes us to call C++ code from C code and really is a bit of a mess with a circular dependency between our libraries. But this does seem better than relying on people to remember to call into a second function after clearing the data. Suggested-by: Michael Andreen <michael@andreen.dev> Suggested-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Dirk Hohndel <dirk@hohndel.org> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
command.cpp | ||
command.h | ||
command_base.cpp | ||
command_base.h | ||
command_device.cpp | ||
command_device.h | ||
command_divelist.cpp | ||
command_divelist.h | ||
command_divesite.cpp | ||
command_divesite.h | ||
command_edit.cpp | ||
command_edit.h | ||
command_edit_trip.cpp | ||
command_edit_trip.h | ||
command_event.cpp | ||
command_event.h | ||
command_filter.cpp | ||
command_filter.h | ||
command_pictures.cpp | ||
command_pictures.h |