┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorAkseli Lahtinen <[email protected]>2024-11-21 12:42:45 +0000
committerAkseli Lahtinen <[email protected]>2024-11-21 12:42:45 +0000
commitfd3f4e5fc1d7360004299a9d5ffa9b5571e7b1e9 (patch)
treec5295571362ebb8d1eca8dae4718d89b743f7f7e /src/views
parent848187d19a43dc6fcc7c1da656db399d9fb85936 (diff)
DolphinView: beginAnchoredSelection after setSelected in selectNextItem
Currently when next item is set selected, it's not set as an anchor. This means that shift-click will not select items between the selection and the next item, and instead behaves like ctrl-click. This is rather inconsistent behavior. We should set the next selected item as an anchor so that shift-click will work: This change starts the `beginAnchoredSelection` process after `setSelection`. For example, if user trashes an item and the next item is selected, shift-click would stop working. BUG:495371
Diffstat (limited to 'src/views')
-rw-r--r--src/views/dolphinview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp
index 6da285a87..c12e3d5f7 100644
--- a/src/views/dolphinview.cpp
+++ b/src/views/dolphinview.cpp
@@ -1881,6 +1881,7 @@ void DolphinView::selectNextItem()
}
if (nextItem >= 0) {
selectionManager->setSelected(nextItem, 1);
+ selectionManager->beginAnchoredSelection(nextItem);
}
m_selectNextItem = false;
}