summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Hein <hein@kde.org>2017-01-30 09:27:10 (GMT)
committerEike Hein <hein@kde.org>2017-01-30 09:27:10 (GMT)
commit3568d8e4a8a2cc4fac7fccb86132c47be37495f6 (patch)
tree9cb4071a1cda1b74bc0ccd561691e652150eec09
parent37a5d9fb5d0b87b50756555348a17f5d1c523cf5 (diff)
Fix clearing selection when rectangle selection contains no items.
Fixes a logic regression from 2b9e0e7c.
-rw-r--r--containments/desktop/package/contents/ui/FolderView.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/containments/desktop/package/contents/ui/FolderView.qml b/containments/desktop/package/contents/ui/FolderView.qml
index 33656ff..620209e 100644
--- a/containments/desktop/package/contents/ui/FolderView.qml
+++ b/containments/desktop/package/contents/ui/FolderView.qml
@@ -565,10 +565,10 @@ Item {
// Set current index to start of selection.
// cachedRectangleSelection is pre-sorted.
currentIndex = cachedRectangleSelection[0];
-
- dir.updateSelection(cachedRectangleSelection.map(positioner.map),
- gridView.ctrlPressed);
}
+
+ dir.updateSelection(cachedRectangleSelection.map(positioner.map),
+ gridView.ctrlPressed);
}
function makeIconSize() {