]> cloud.milkyroute.net Git - dolphin.git/commit
Fix inconsistency in selection manager
authorPeter Penz <peter.penz19@gmail.com>
Thu, 29 Dec 2011 23:02:17 +0000 (00:02 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Thu, 29 Dec 2011 23:08:37 +0000 (00:08 +0100)
commitacee6d0fc59e1c1c5e1d842620245ee3d1e514b7
tree2b3d5e943a307ef5c93c6ad623b5482f22306b69
parentd7a803cae025c0d5adcf70ddf256fbcc8140827e
Fix inconsistency in selection manager

When a selection has been done with non-linear ranges, it was possible that
the anchor item pointed to an invalid index that resulted into an invalid
selection.

As part of this fix the sorting for DolphinView::selectedItems() has been
disabled (if the caller assumes a sorted selection he must manually adjust it).

BUG: 288908
FIXED-IN: 4.8.0
src/kitemviews/kitemlistselectionmanager.cpp
src/kitemviews/kitemlistselectionmanager.h
src/views/dolphinview.cpp