]> cloud.milkyroute.net Git - dolphin.git/commit
Do not change the selection when re-sorting the view
authorFrank Reininghaus <frank78ac@googlemail.com>
Sat, 26 Apr 2014 10:29:36 +0000 (12:29 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Sat, 26 Apr 2014 10:37:39 +0000 (12:37 +0200)
commitb5ca0e2de9001d2584073c043c1fbc1921e0174d
tree5886d5658cb3ba9e987cec59e8f0be5abfcad8c2
parent272cbbd16b03e51b30b6b9d472aa56054a5ea036
Do not change the selection when re-sorting the view

If a range of items has been selected by Shift-clicking or by pressing
Shift+Arrow, then each of them is added individually to the selection
before the items are re-sorted.

Before this commit, the first and the last item in the range were
moved, and all items between them were selected, even though these were
not necessarily the items which had been selected before the
re-sorting.

BUG: 333457
REVIEW: 117603
FIXED-IN: 4.13.1
src/kitemviews/kitemlistselectionmanager.cpp
src/tests/kitemlistselectionmanagertest.cpp