mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move remove_weightsystem() to weightsystem_table
Feel natural in a C++ code base. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b5a4e7eb0b
commit
4cb3db2548
3 changed files with 4 additions and 4 deletions
|
@ -1018,7 +1018,7 @@ void RemoveWeight::undo()
|
|||
void RemoveWeight::redo()
|
||||
{
|
||||
for (size_t i = 0; i < dives.size(); ++i) {
|
||||
remove_weightsystem(dives[i], indices[i]);
|
||||
dives[i]->weightsystems.remove(indices[i]);
|
||||
emit diveListNotifier.weightRemoved(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