┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphindetailsview.cpp
diff options
context:
space:
mode:
authorSimon Paul St James <[email protected]>2008-10-27 20:32:29 +0000
committerSimon Paul St James <[email protected]>2008-10-27 20:32:29 +0000
commit75480d07cd820c75ca418b990d3059f154bbdf6e (patch)
treea29ae4adb5fc6162feae5d2cca8c76138229eabe /src/dolphindetailsview.cpp
parent74bb633cbd760a076c4e71f40069b0115cbc8276 (diff)
Essential validity check that fell through the cracks when setSelectionRecursive was removed.
svn path=/trunk/KDE/kdebase/apps/; revision=876682
Diffstat (limited to 'src/dolphindetailsview.cpp')
-rw-r--r--src/dolphindetailsview.cpp5
1 files changed, 5 insertions, 0 deletions
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.