┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Surrel <[email protected]>2018-12-01 21:20:01 +0100
committerThomas Surrel <[email protected]>2018-12-01 21:20:01 +0100
commite62ae08d305254de5901923ef462daac166191a8 (patch)
treee912867b1b1fcf84f974f179b0f1bf5370ea6c94 /src
parentb714604a6795f9ed398a886c23348a2d52fbb7d1 (diff)
parent6100f66ae2ba5ae50c2fcc263b6faaa695d37948 (diff)
Merge remote-tracking branch 'origin/Applications/18.12'
Diffstat (limited to 'src')
-rw-r--r--src/kitemviews/kitemlistselectionmanager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/kitemviews/kitemlistselectionmanager.cpp b/src/kitemviews/kitemlistselectionmanager.cpp
index f5e097c02..d16c5e2d3 100644
--- a/src/kitemviews/kitemlistselectionmanager.cpp
+++ b/src/kitemviews/kitemlistselectionmanager.cpp
@@ -331,6 +331,9 @@ void KItemListSelectionManager::itemsMoved(const KItemRange& itemRange, const QL
// Store the current selection (needed in the selectionChanged() signal)
const KItemSet previousSelection = selectedItems();
+ // Store whether we were doing an anchored selection
+ const bool wasInAnchoredSelection = isAnchoredSelectionActive();
+
// endAnchoredSelection() adds all items between m_currentItem and
// m_anchorItem to m_selectedItems. They can then be moved
// individually later in this function.
@@ -348,7 +351,9 @@ void KItemListSelectionManager::itemsMoved(const KItemRange& itemRange, const QL
}
// Start a new anchored selection.
- beginAnchoredSelection(m_currentItem);
+ if (wasInAnchoredSelection) {
+ beginAnchoredSelection(m_currentItem);
+ }
// Update the selections
if (!m_selectedItems.isEmpty()) {