]> 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:09:42 +0000 (00:09 +0100)
commit7953913c9f4223c726a34178cd69010dfaea3f58
tree2c719f90ff17b988569379db5c5b456093ac7830
parentdec1a1b29d3a384a92163d0a97f8e65e1a0082e3
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