mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
650fda3221
commit
b5a4e7eb0b
3 changed files with 5 additions and 7 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue