From accafbf95e158603cfcfe2173661a9b23f271064 Mon Sep 17 00:00:00 2001 From: Simon Paul St James Date: Sun, 26 Oct 2008 21:21:58 +0000 Subject: [PATCH] If we commit a toggle range due to a change of parent, check to see if we should immediately form a new range with the current index. This stops child items from sometime being missed by the band. CCMAIL: peter.penz@gmx.at svn path=/trunk/KDE/kdebase/apps/; revision=876240 --- src/dolphindetailsview.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 3ccca4622..82f76f6e0 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -776,7 +776,11 @@ void DolphinDetailsView::updateElasticBandSelection() currIndex.parent() != toggleIndexRangeBegin.parent()); if (commitToggleIndexRange) { itemsToToggle.select(toggleIndexRangeBegin, lastIndex ); - formingToggleIndexRange = false; + // Immediately start a new range with currIndex? + if (needToToggleItem) { + toggleIndexRangeBegin = currIndex; + } + formingToggleIndexRange = needToToggleItem; } // next item -- 2.47.3