diff options
| author | Nicolas Fella <[email protected]> | 2023-08-10 14:42:08 +0200 |
|---|---|---|
| committer | Nicolas Fella <[email protected]> | 2023-08-10 14:42:08 +0200 |
| commit | 521f4937d55ff611ebe46fcbbe162eb2d9d175ad (patch) | |
| tree | 585a9242d72cfb1f95ac2f4a62c01377fd90f073 /src/views/dolphinview.cpp | |
| parent | 23b7d64d9c284ddc81b2101034bee01b1207fc52 (diff) | |
| parent | fc6fa9ba982f73dd2da5e3016006ce74eebb1bac (diff) | |
Merge branch 'master' into kf6
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index ebbf324b0..3db81ec18 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -87,6 +87,7 @@ DolphinView::DolphinView(const QUrl &url, QWidget *parent) , m_currentItemUrl() , m_scrollToCurrentItem(false) , m_restoredContentsPosition() + , m_controlWheelAccumulatedDelta(0) , m_selectedUrls() , m_clearSelectionBeforeSelectingNewItems(false) , m_markFirstNewlySelectedItemAsCurrent(false) @@ -2037,9 +2038,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); |
