From 75480d07cd820c75ca418b990d3059f154bbdf6e Mon Sep 17 00:00:00 2001 From: Simon Paul St James Date: Mon, 27 Oct 2008 20:32:29 +0000 Subject: [PATCH] Essential validity check that fell through the cracks when setSelectionRecursive was removed. svn path=/trunk/KDE/kdebase/apps/; revision=876682 --- src/dolphindetailsview.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 82f76f6e0e..8aff93bfa4 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.