core: move set_weightsystem() to weightsystem_table

Feels natural in a C++ code base.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-07-01 22:55:39 +02:00 committed by bstoeger
parent 650fda3221
commit b5a4e7eb0b
3 changed files with 5 additions and 7 deletions

View file

@ -1061,7 +1061,7 @@ void EditWeight::redo()
{
for (size_t i = 0; i < dives.size(); ++i) {
add_weightsystem_description(new_ws); // This updates the weightsystem info table
set_weightsystem(dives[i], indices[i], new_ws);
dives[i]->weightsystems.set(indices[i], new_ws);
emit diveListNotifier.weightEdited(dives[i], indices[i]);
dives[i]->invalidate_cache(); // Ensure that dive is written in git_save()
}