From f519eb9727facc9c5206bb77260e2d33b8929ef0 Mon Sep 17 00:00:00 2001 From: Pan Zhang Date: Thu, 18 Dec 2025 17:44:31 +0800 Subject: dolphinview: fix missing selection on next item after Delete key removal When a file is deleted using the Delete key, the next item gains focus but loses its selection, which breaks further keyboard deletion. This patch ensures the next item is explicitly selected after clearing the previous selection. BUG: 513371 --- src/views/dolphinview.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 729583ab0..f2d1165f5 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -2035,6 +2035,7 @@ void DolphinView::selectNextItem() const auto nextItem = qMin(lastSelectedIndex + 1, itemsCount() - 1); selectionManager->setCurrentItem(nextItem); selectionManager->clearSelection(); + selectionManager->setSelected(nextItem, 1, KItemListSelectionManager::Select); m_selectNextItem = false; } -- cgit v1.3