Essential validity check that fell through the cracks when setSelectionRecursive was removed.

svn path=/trunk/KDE/kdebase/apps/; revision=876682
This commit is contained in:
Simon Paul St James 2008-10-27 20:32:29 +00:00
parent 74bb633cbd
commit 75480d07cd

View file

@ -717,6 +717,11 @@ void DolphinDetailsView::updateElasticBandSelection()
} else {
startIndex = model()->index(startIndex.row(), KDirModel::Name);
}
if (!startIndex.isValid()) {
clearSelection();
m_band.ignoreOldInfo = true;
return;
}
// Go through all indexes between the top and bottom of boundingRect, and
// update the selection.