┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorPan Zhang <[email protected]>2025-12-18 17:44:31 +0800
committerMéven Car <[email protected]>2026-01-04 11:48:40 +0000
commitf519eb9727facc9c5206bb77260e2d33b8929ef0 (patch)
tree90a308c41eb2224f962f20809e8946a8fbda7dcc /src/views
parent4a699d2cfe03bf8971a5def319f97e836751498f (diff)
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
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 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;
}