diff options
| author | Akseli Lahtinen <[email protected]> | 2025-04-24 16:45:58 +0300 |
|---|---|---|
| committer | Akseli Lahtinen <[email protected]> | 2025-04-26 21:22:09 +0300 |
| commit | b64bf8ca69c473de973eddef3d137fea80acb968 (patch) | |
| tree | 3d1c44877fe57b1f00eefc54516c89ff65d14b00 /src | |
| parent | f74995a505cfac9d6a0a889a4e8e860d1435435a (diff) | |
DolphinView: Don't end anchored selection in updateSelectionState
Do not end anchored selection when selection state is updated, such as
when Dolphin is started with --select "thing.txt" flag.
If we end here, and user wants to press shift to select from
current item to X items, this would cause the anchored selection
to start from the clicked item, not from the first selected item.
BUG: 503221
Diffstat (limited to 'src')
| -rw-r--r-- | src/views/dolphinview.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index f3bde88df..ee7ac51d2 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -1776,7 +1776,6 @@ void DolphinView::updateSelectionState() if (!selectedItems.isEmpty()) { selectionManager->beginAnchoredSelection(selectionManager->currentItem()); selectionManager->setSelectedItems(selectedItems); - selectionManager->endAnchoredSelection(); if (shouldScrollToCurrentItem) { m_view->scrollToItem(selectedItems.first()); } |
