diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-07-21 22:24:24 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-11 16:22:27 -0700 |
commit | ba9c35215e88dea0505e0f82531941797fc1ce7d (patch) | |
tree | 64cf80c41431651de4a5fb0020dd29aa94a6c625 /desktop-widgets/divelistview.cpp | |
parent | c30efc95d47291d8eadc6a5902eb5cc2a1dba13c (diff) | |
download | subsurface-ba9c35215e88dea0505e0f82531941797fc1ce7d.tar.gz |
Dive editing: don't repeatedly loop through whole dive list
On dive editing, for every changed field the code looped through
the whole dive-list and modified the selected dives. Instead,
get the list of selected dives once and use that.
Whereas this may look like a gratuitous optimization, it will
make things easier for subsequent commits. Notably, we can
pass the list of selected dives to an "UndoObject".
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/divelistview.cpp')
0 files changed, 0 insertions, 0 deletions