From: Simon Paul St James Date: Sun, 26 Oct 2008 21:21:58 +0000 (+0000) Subject: If we commit a toggle range due to a change of parent, check to see if we should... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/accafbf95e158603cfcfe2173661a9b23f271064 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 --- 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