subsurface/commands
Berthold Stoeger 6f367c70b7 Create UUID when adding a dive site to core
3f8b4604be introduced a bug: it replaced alloc_dive_site() by the
divesite constructor. However, the latter does not generate a
UUID (for that it would have to access the dive site table).

Thus newly added dive sites had no UUID and could not be saved
properly.

Use the register_site() instead of the put() function when
adding the dive site to the core, so that the UUID is created
if needed.

This needs an audit.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-12-08 17:56:53 -08:00
..
CMakeLists.txt
command.cpp
command.h
command_base.cpp
command_base.h core: fix undo of dive merging 2024-09-03 18:20:48 +12:00
command_device.cpp
command_device.h
command_divelist.cpp core: introduce a few user-defined literals for unit types 2024-09-11 10:23:07 +02:00
command_divelist.h core: fix undo of dive merging 2024-09-03 18:20:48 +12:00
command_divesite.cpp Create UUID when adding a dive site to core 2024-12-08 17:56:53 -08:00
command_divesite.h
command_edit.cpp core: introduce a few user-defined literals for unit types 2024-09-11 10:23:07 +02:00
command_edit.h
command_edit_trip.cpp
command_edit_trip.h
command_event.cpp undo: exit early if no event in RemoveEvent() 2024-08-18 16:26:31 +02:00
command_event.h
command_filter.cpp
command_filter.h
command_pictures.cpp
command_pictures.h