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: REPORTED ---    
Severity: normal CC: kfm-devel, saunders
Priority: NOR    
Version: 21.08.2   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:

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. ***