summaryrefslogtreecommitdiffstats
path: root/subsurface-helper.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-05-15 11:40:39 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-05-17 07:55:34 -0700
commit9bb58338485c5c938b529a3ec643a985031f0c97 (patch)
treece9e994ac1656bcb43285b521a2753f63e97a9a2 /subsurface-helper.cpp
parenta969d1dd4518ce77e8fba920aec4a5d8cfd1f636 (diff)
downloadsubsurface-9bb58338485c5c938b529a3ec643a985031f0c97.tar.gz
Undo: sort list of dives to add and delete
In 5729f93e1f512aa9e68b0e01743152aaee2b7c12, the dive addition / deletion code was simplified in that indexes were calculated on the fly. This made it, in principle, possible to pass in dives in any order. But there was a small oversight: the recipients of the dives-added and dives-deleted signals expect the dives to be sorted as in the core list. Only then will the lists be consistent. Therefore, sort the lists before adding / deleting dives. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'subsurface-helper.cpp')
0 files changed, 0 insertions, 0 deletions