From: Akseli Lahtinen Date: Thu, 24 Apr 2025 13:45:58 +0000 (+0300) Subject: DolphinView: Don't end anchored selection in updateSelectionState X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/b64bf8ca69c473de973eddef3d137fea80acb968 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 --- 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()); }