From: Simon Paul St James Date: Mon, 27 Oct 2008 20:32:29 +0000 (+0000) Subject: Essential validity check that fell through the cracks when setSelectionRecursive... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/75480d07cd820c75ca418b990d3059f154bbdf6e?ds=sidebyside Essential validity check that fell through the cracks when setSelectionRecursive was removed. svn path=/trunk/KDE/kdebase/apps/; revision=876682 --- diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 82f76f6e0..8aff93bfa 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -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.