mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
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:
parent
74bb633cbd
commit
75480d07cd
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue