| Summary: | "File already exists" dialog does not show up when you try to rename a file using the name of a file already present on desktop | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Patrick Silva <bugseforuns> |
| Component: | general | Assignee: | Pan Zhang <zhangpan> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kde, kdelibs-bugs-null, med.medin.2014, nate, plasma-bugs-null, yusq77 |
| Priority: | NOR | ||
| Version First Reported In: | 6.4.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/kio/-/commit/e2869783a06c4a31a7f636b861f79bdffd8d79f8 | Version Fixed/Implemented In: | 6.18 |
| Sentry Crash Report: | |||
|
Description
Patrick Silva
2019-05-13 20:08:57 UTC
Dolphin uses KIO::moveAs which prompts to rename if already exists, whereas Folder View goes through KDirModel which uses KIO::rename which complains when it already exists and doesn't work when direct rename isn't possible. I guess KDirModel should be changed? *** Bug 470333 has been marked as a duplicate of this bug. *** @pan You can look at this question first. A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1981 I have reproduced the issue and submitted a merge request. Git commit e2869783a06c4a31a7f636b861f79bdffd8d79f8 by Akseli Lahtinen, on behalf of Pan Zhang. Committed on 05/09/2025 at 05:32. Pushed by akselmo into branch 'master'. KDirModel: use moveAs instead of Rename when editing file name When renaming a file on the desktop to an existing filename, the operation previously failed with a generic error instead of showing the expected "file already exists" dialog. This change ensures consistent behavior with renaming in the file manager. FIXED-IN: 6.18 M +2 -1 src/widgets/kdirmodel.cpp https://invent.kde.org/frameworks/kio/-/commit/e2869783a06c4a31a7f636b861f79bdffd8d79f8 |