diff options
| author | Amol Godbole <[email protected]> | 2023-08-01 09:59:57 +0000 |
|---|---|---|
| committer | Felix Ernst <[email protected]> | 2023-08-01 09:59:57 +0000 |
| commit | 567f2858acc260023c3e64112097f0dc1a39ea55 (patch) | |
| tree | 946cb0208a054895db2791ed8d3682aa96068469 /src | |
| parent | c6e12feb0bf017a0c6130ebd2cc14e9354b61a89 (diff) | |
Fix incorrect file selection after file rename
forceUrlsSelection() needs to be called only when new name of renamed
file does not exist.
BUG: 417930
Diffstat (limited to 'src')
| -rw-r--r-- | src/views/dolphinview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 9666ca2ab..fba7e6419 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -2063,9 +2063,9 @@ void DolphinView::slotRoleEditingFinished(int index, const QByteArray &role, con KIO::FileUndoManager::self()->recordJob(KIO::FileUndoManager::Rename, {oldUrl}, newUrl, job); job->uiDelegate()->setAutoErrorHandlingEnabled(true); - forceUrlsSelection(newUrl, {newUrl}); - if (!newNameExistsAlready) { + forceUrlsSelection(newUrl, {newUrl}); + // Only connect the result signal if there is no item with the new name // in the model yet, see bug 328262. connect(job, &KJob::result, this, &DolphinView::slotRenamingResult); |
