┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorJin Liu <[email protected]>2024-10-11 16:17:04 +0800
committerJin Liu <[email protected]>2024-10-12 21:17:38 +0800
commita340362524b5979474bb55705e37f40ba89f6f5b (patch)
tree2a134482515e9cfe212e907aeefe59180dbcc72a /src/views
parent829e0eb912a5681d5c6fddfd461165ae9f5cb093 (diff)
dolphinview: after inline renaming, immediately update the selection
Currently, the inline renaming updates the model and the list of selected files (m_selectedUrls) immediately after the user presses enter, but the selection in the view is not immediately updated. This results in the selection to be briefly lost for about 1 second until the view automatically refreshes. This patch updates the selection immediately after the user presses enter, so the renamed file is still selected. BUG: 481717
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 17023ae5f..ab39173da 100644
--- a/src/views/dolphinview.cpp
+++ b/src/views/dolphinview.cpp
@@ -2032,6 +2032,7 @@ void DolphinView::slotRoleEditingFinished(int index, const QByteArray &role, con
if (!newNameExistsAlready) {
forceUrlsSelection(newUrl, {newUrl});
+ updateSelectionState();
// Only connect the result signal if there is no item with the new name
// in the model yet, see bug 328262.