Bug 492277 - "Current location changed, '/.../path' no longer exists" warning has wrong path
Summary: "Current location changed, '/.../path' no longer exists" warning has wrong path
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 24.05.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-27 16:04 UTC by php4fan
Modified: 2024-10-08 09:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description php4fan 2024-08-27 16:04:04 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY


STEPS TO REPRODUCE
1. Open some folder A containing subfolders in Dolphin
2. Copy a subfolder B found in A into the desktop, e.g. by ctrl+dragging and dropping it from A into the desktop and choosing "copy"
3. Double-click on the copy of folder B that is now in the desktop, so as to open it in a new Dolphin window
4. In the new Dolphin window where B has been opened, close any additional unrelated tabs that have been opened for no reason as per bug 469271. Leave open only the folder on which you double-clicked
5. Delete the copy of folder B from the desktop, which is also the folder that is currently open in the newest Dolphin window
6. give focus back to the dolphin window where the copy of folder B (which no longer exists) was open

OBSERVED RESULT
The current location in the Dolphin window has switched to Home, as expected, but this warning is shown which says complete nonsense:
"Current location changed, '/home/me/Desktop is no longer accessible".
It is not true that the 'Desktop' folder is no longer accessible, and it's irrelevant as nobody asked you to access the Desktop folder

EXPECTED RESULT
The warning should say "Current location changed, '/home/me/Desktop/B' is no longer accessible (assuming the name of the folder was "B").


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.6.41-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 12 × 12th Gen Intel® Core™ i7-1255U
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: Vivobook_ASUSLaptop X1502ZA_F1502ZA
System Version: 1.0
Comment 1 Paul Worrall 2024-08-28 08:05:36 UTC
Confirmed using 24.08.0
Comment 2 Bug Janitor Service 2024-09-16 00:41:08 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/827
Comment 3 Méven 2024-10-08 09:20:28 UTC
Git commit 2328cb7f923e5c6eeb7617eebf3ee73c0bb8e50b by Méven Car, on behalf of Amol Godbole.
Committed on 08/10/2024 at 09:15.
Pushed by meven into branch 'master'.

DolphinViewContainer: Delay changing the url

KCoreDirLister::itemsDeleted() signal is being emitted twice for the
same url. This results in Dolphin displaying an incorrect location.
Delay changing the url instead of delaying
DolphinView::currentDirectoryRemoved() so that the check for current
directory being removed in KFileItemModel::slotItemsDeleted() occurs
correctly, while still ensuring that KCoreDirLister is not prematurely
modified.
Related: bug 473377

M  +7    -4    src/dolphinviewcontainer.cpp
M  +1    -2    src/views/dolphinview.cpp

https://invent.kde.org/system/dolphin/-/commit/2328cb7f923e5c6eeb7617eebf3ee73c0bb8e50b