]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Essential validity check that fell through the cracks when setSelectionRecursive...
authorSimon Paul St James <kdedevel@etotheipiplusone.com>
Mon, 27 Oct 2008 20:32:29 +0000 (20:32 +0000)
committerSimon Paul St James <kdedevel@etotheipiplusone.com>
Mon, 27 Oct 2008 20:32:29 +0000 (20:32 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=876682

src/dolphindetailsview.cpp

index 82f76f6e0e8368e8b3c86bb8647be8475c4ec6a5..8aff93bfa4804641f39f9fe2b213bd02b999b75a 100644 (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.