Bug 458472

Summary: Tab appears to selects wrong file when re-ordered
Product: [Applications] dolphin Reporter: Jeremy <borgman.jeremy>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: kfm-devel
Priority: NOR    
Version: 22.08.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: glitch

Description Jeremy 2022-08-29 16:13:52 UTC
Created attachment 151684 [details]
glitch

SUMMARY
When the file names are sorted by name and you re-name a file and "tab" to the next file, the re-ordering of the list appears to select the wrong file. The attached gif may help better than the steps to reproduce. 


STEPS TO REPRODUCE
1. Create a set of files (1.txt, 2.txt .... 5.txt) 
2. Set view to "detailed"
3. Sort files by name
4. Start renaming the files from 1.txt to a.txt
5. Hit tab to go to the next file
6. See that the wrong file is selected

OBSERVED RESULT
I see that it initially selects "2.txt" but then after the files are re-ordered "3.txt" is selected and will be renamed

EXPECTED RESULT
I expect 2.txt to be selected since that was the next in the list when I hit tab. 

Operating System: EndeavourOS
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Kernel Version: 5.15.63-1-lts (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 6800 XT
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: X570 AORUS ULTRA
System Version: -CF