diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-26 21:21:44 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-26 13:54:59 -0700 |
commit | 6e83135fba49680fe1e951d19d6bc6690328c5d8 (patch) | |
tree | e5ea44ebffd77018b2959d8554d89321aab8f3f1 /core/profile.c | |
parent | 4f438d1e32a8a690c77f7eba8f80711e35e85df5 (diff) | |
download | subsurface-6e83135fba49680fe1e951d19d6bc6690328c5d8.tar.gz |
desktop: select dives at once
The old code would call QItemSelectionModel::select() once for every dive.
Instead collect the selection in a QItemSelection and only call
QItemSelectionModel::select() once. This makes selecting multiple dives
significantly faster.
The loop also expanded the trips with selections. This has now to be
done in an extra loop.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/profile.c')
0 files changed, 0 insertions, 0 deletions