Bug 497159 - With Previews enabled, Dolphin doesn't show the preview for a renamed file until the view is manually refreshed
Summary: With Previews enabled, Dolphin doesn't show the preview for a renamed file un...
Status: RESOLVED DUPLICATE of bug 497555
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (show other bugs)
Version: git-master
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-07 13:12 UTC by Chris Warren
Modified: 2024-12-17 09:10 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Warren 2024-12-07 13:12:09 UTC
SUMMARY

With Previews enabled, Dolphin doesn't show the preview for a file that has been renamed until the view is manually refreshed

STEPS TO REPRODUCE
1. Have Previews enabled
2. Navigate to a directory where there's a file you'd like to rename that currently has a content preview as its icon
3. Rename the file that is showing a preview of the file

OBSERVED RESULT

The icon associated with the file changes from a content preview to a generic media type icon as though I either had previews turned off or there was an issue generating a preview for the new file.

This happens in both local and remote (NFS via a mountpoint) operations. It also happens regardless of whether I hit F2 to rename or right click -> Rename.

If I reload the file view in some way (either F5 or navigate out and then back into the directory), the preview is regenerated under that new filename, so that is a workaround.

EXPECTED RESULT
The preview associated with the old filename is now associated with the new filename without needing to reload anything

SOFTWARE/OS VERSIONS
Operating System: Gentoo 2.17
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1

KDE Plasma/Gear/Frameworks is from git-master, most recent commits as of 2024/12/07 @ ~7:30am EST

ADDITIONAL INFORMATION
Commit for dolpin is 18ced02b2ec74b92918fc4fce42b5bba5e6b8a20, although I first observed this issue maybe a few weeks ago I think
Comment 1 Chris Warren 2024-12-07 13:49:19 UTC
One additional nuance that I just noticed that may only be tangential to the issue I reported -- previews for video files do end up regenerating without reloading the view if I happen to mouse over the icon. 

It looks like that may be related to the fact that videos show different frames in the preview. Images don't have the same behavior on hover, at least non-animated images.
Comment 2 TraceyC 2024-12-12 23:52:31 UTC
I'm not able to reproduce this on Dolphin 24.08.3 or built from today's git-master
After I rename a file, the preview briefly changes to a generic icon, but then switches back to the correct file preview

I'll keep this open in case someone else is able to reproduce
Comment 3 Akseli Lahtinen 2024-12-16 09:42:28 UTC
I can reproduce this, it happens with jpg and png files at least. Have to manually refresh or change folders for the preview to pop back up.

dolphin 25.03.70
Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.4-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 4 Akseli Lahtinen 2024-12-16 09:42:51 UTC
This might be related to https://bugs.kde.org/show_bug.cgi?id=497259
Comment 5 Akseli Lahtinen 2024-12-17 09:10:44 UTC

*** This bug has been marked as a duplicate of bug 497555 ***