diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-05-24 21:03:18 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-24 21:09:11 -0700 |
commit | 81c84d02edfa2d91153c8d52e16aa2db442c5264 (patch) | |
tree | 98913d59262034704af189d23263e3dcf4477ec5 /worldmap-save.c | |
parent | a3d300ca919d338345edfb6d76eb17a88875293a (diff) | |
download | subsurface-81c84d02edfa2d91153c8d52e16aa2db442c5264.tar.gz |
Speed up the multi dive selection
Dirk's code in commit a3d300ca919d ("Correctly implement multi dive
selection") had a major flaw - it kept redrawing the selected dives
one after another. Not what we need. So this fixes this up so that it
doesn't take more than a sec to select all the dives that are on the same
part of the click on the globe. I've achieved this by creating a boolean '
dontEmitDiveChanged and sending the signal only if this flag is false.
The reason that we can't simply remove the emit from the selectionChanged
is because the selectionChanged is what we have when we click on the
diveList, if we removed this from there, nothing will happen upon
selection.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'worldmap-save.c')
0 files changed, 0 insertions, 0 deletions