Bug 507034

Summary: Weird behavior when renaming multiple files
Product: [Applications] dolphin Reporter: y9ly4z091
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version First Reported In: 25.04.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: The rename window with the wrong preview

Description y9ly4z091 2025-07-14 16:50:37 UTC
Created attachment 183228 [details]
The rename window with the wrong preview

SUMMARY
When using "Replace text" option in the pop-up window for renaming multiple files inputting the file extension in the "Replacing" text box leads to weird interactions. 

STEPS TO REPRODUCE
1. Open dolphin to a folder with two or more files and select them
2. select rename in the context menu and "replace text" in the drop down menu
3. input file extension in the "Replacing" text box

OBSERVED RESULT
when replacing ".json" in "foo.json" with ".bar" displays "foo.bar.json" in the preview. After clicking "Rename" it doesn't rename anything.

EXPECTED RESULT
All occurrences of the text in "Replacing" text box get properly replaced with the contents of "With:" textbox 

SOFTWARE/OS VERSIONS
Dolphin version: dolphin 25.04.3
Operating System: EndeavourOS 
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.15.6-arch1-1 (64-bit)
Graphics Platform: Wayland


ADDITIONAL INFORMATION