Bug 449669

Summary: Gwenview does not update current document's URL after renaming it
Product: [Applications] gwenview Reporter: ratijas <me>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: ashark, nyanpasu64
Priority: NOR    
Version First Reported In: 25.08.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Gwenview can't refresh after renaming file

Description ratijas 2022-02-05 21:45:39 UTC
Created attachment 146330 [details]
Gwenview can't refresh after renaming file

SUMMARY

Gwenview can rename viewed files (F2 command), but upon doing so it still shows an old filename/URL in the window title, and an attempt to refresh it (F5) will fail with an error "file %old_name%" not found".

One possible workaround is to switch pictures in a folder back and forth left/right. That would reset "current item" and thus update the filename.

STEPS TO REPRODUCE
1. Open a picture in Gwenview.
2. Press F2 and rename it.
3. Press F5 to refresh.

OBSERVED RESULT
Loading '%oldname%' error message.

EXPECTED RESULT
Should have changed internal information about currently opened file.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.5-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970M/PCIe/SSE2

gwenview: 9c21b36e962b3ed19f8eecbba7964b1da65ffec3
Comment 1 nyanpasu64 2022-03-17 15:52:34 UTC
Additionally, after renaming an image, dragging the image to another program (eg. to attach it to a message) fails as well until you switch left and right.
Comment 2 Andrew Shark 2023-08-22 14:01:06 UTC
Can confirm.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.4.11-arch1-1 (64-bit)
Graphics Platform: Wayland
Gwenview: 23.07.80
Comment 3 Andrew Shark 2023-08-22 14:06:52 UTC
Also applies when renaming in fullscreen mode. The Bug 390332 fixed the fullscreen panel. But not the titlebar.
Comment 4 A Linux User 2025-09-04 12:18:29 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Gwenview 25.08.0 (the latest released version)?
Comment 5 Andrew Shark 2025-09-04 13:29:54 UTC
Yes, still an issue.

Operating System: Arch Linux 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.2
Kernel Version: 6.16.4-arch1-1 (64-bit)
Graphics Platform: Wayland
Gwenview: 25.08.0