Bug 444311

Summary: Jumping to next file during rename (which changes sort order) leads to wrong filelist display
Product: [Applications] dolphin Reporter: Kishore Gopalakrishnan <kishore96>
Component: view-engine: details modeAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: akselmo, john.kizer, kfm-devel, postix, saunders, somethinglikethis1
Priority: NOR    
Version First Reported In: 21.08.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kishore Gopalakrishnan 2021-10-24 08:57:05 UTC
SUMMARY
In the details view, when the sort order changes during a rename operation and the user moves to the next file (using arrow key) without exiting rename mode, the list of files in the current folder is shown wrongly.

STEPS TO REPRODUCE
1. In a new folder, create five files: a.txt, b.txt, c.txt, d.txt, e.txt
2. Switch to details view (Ctrl+3)
3. Sort by name (ascending; click the 'name' column heading if a different sort order is being used)
4. Select b.txt and press F2 (rename)
5. Make its new name 'z.txt' (but don't press enter)
6. Press the down arrow to move to the next file without exiting rename mode.

OBSERVED RESULTS
z.txt (the renamed version of b.txt) moves to the end of the folder view. The next file (c.txt) is shown twice, and one of those instances is selected for renaming.

EXPECTED RESULTS
Either
1. sort order should not change until user exits rename mode
2. even if the sort order changes, the list of files should still be shown correctly

SYSTEM INFORMATION
Operating System: Arch Linux
KDE Plasma Version: 5.23.1
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.14.14-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
Memory: 21.4 GiB of RAM
Graphics Processor: AMD Radeon™ Vega 8 Graphics
Comment 1 Kishore Gopalakrishnan 2022-07-31 06:24:51 UTC
*** Bug 452305 has been marked as a duplicate of this bug. ***
Comment 2 John Kizer 2025-04-14 06:56:14 UTC
I can reproduce on Dolphin 24.12.3. Thanks!
Comment 3 John Kizer 2025-04-14 07:00:16 UTC
*** Bug 502766 has been marked as a duplicate of this bug. ***
Comment 4 Akseli Lahtinen 2025-08-28 13:18:19 UTC
At the very least, I can't see duplicates now when pressing arrow down, but the sudden movement still happens.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.80
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.1
Kernel Version: 6.15.10-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600