Bug 497259

Summary: The thumbnails inside of icons of folders don't update when the file of the thumbnail is trashed/deleted
Product: [Frameworks and Libraries] kio-extras Reporter: Fernando Marcelino Muniz <fernandommuniz>
Component: Thumbnails and previewsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: akselmo, dolphin-bugs-null, nate
Priority: NOR    
Version First Reported In: 24.08.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.23
Sentry Crash Report:
Attachments: I've only tested this issue on /home subfolders, but it might happen with all folders.

Description Fernando Marcelino Muniz 2024-12-10 03:37:15 UTC
Created attachment 176478 [details]
I've only tested this issue on /home subfolders, but it might happen with all folders.

It's quite complicated to explain with words, so see the attachment.
Comment 1 Fernando Marcelino Muniz 2024-12-10 03:39:36 UTC
Notice how you can also see the same file on the Desktop folder, so moving files also has this issue.
Comment 2 Akseli Lahtinen 2024-12-13 14:05:16 UTC
Can confirm, it seems to happen only with images. Couldn't get it to happen with a video file however.

Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.0
Kernel Version: 6.11.11-300.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 3 Fernando Marcelino Muniz 2024-12-13 20:52:41 UTC
I can do this with a video, but it's likely because of "ffmpegthumbs".
Comment 4 Fernando Marcelino Muniz 2025-07-20 22:08:31 UTC
I've noticed that when dragging items from the Trash folder into another tab, or to one of the folders under "Places", the item still appear inside the Trash until F5 is pressed.
Comment 5 Akseli Lahtinen 2025-08-28 12:01:10 UTC
I am unable to reproduce this anymore, does it still happen to you?

Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.80
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.1
Kernel Version: 6.15.10-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600
Comment 6 Fernando Marcelino Muniz 2025-08-28 17:57:27 UTC
Had a tab in /home and a second one in /documents . I moved an screenshot to /documents it updated it's preview on /home , but it didn't update when I deleted it. Exactly as shown in the attachment.

Operating System: Arch Linux 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.16.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i5-11300H @ 3.10GHz
Memory: 9 GB of RAM (8.1 GB usable)
Graphics Processor 1: NVIDIA GeForce GTX 1650
Graphics Processor 2: Intel® Iris® Xe Graphics
Manufacturer: LENOVO
Product Name: 82MG
System Version: IdeaPad Gaming 3 15IHU6
Comment 7 Akseli Lahtinen 2026-01-07 11:51:57 UTC
(In reply to Fernando M. Muniz from comment #6)
> Had a tab in /home and a second one in /documents . I moved an screenshot to
> /documents it updated it's preview on /home , but it didn't update when I
> deleted it. Exactly as shown in the attachment.
> 
> Operating System: Arch Linux 
> KDE Plasma Version: 6.4.4
> KDE Frameworks Version: 6.17.0
> Qt Version: 6.9.1
> Kernel Version: 6.16.3-arch1-1 (64-bit)
> Graphics Platform: Wayland
> Processors: 8 × 11th Gen Intel® Core™ i5-11300H @ 3.10GHz
> Memory: 9 GB of RAM (8.1 GB usable)
> Graphics Processor 1: NVIDIA GeForce GTX 1650
> Graphics Processor 2: Intel® Iris® Xe Graphics
> Manufacturer: LENOVO
> Product Name: 82MG
> System Version: IdeaPad Gaming 3 15IHU6

Can confirm

Operating System: KDE Linux 2026-01-06
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.1
Kernel Version: 6.18.3-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600
Comment 8 Bug Janitor Service 2026-01-08 14:46:32 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/2106
Comment 9 Akseli Lahtinen 2026-01-09 15:59:56 UTC
Git commit bddc77cd03e2e3c388a7c0ee77131c56ce2699bc by Akseli Lahtinen.
Committed on 09/01/2026 at 11:05.
Pushed by akselmo into branch 'master'.

KCoreDirLister: Add parentDirs of dirs that have not been deleted to pendingUpdates list

We never told the pendingUpdates list about the parent folders of
files/folders that got deleted. This caused situations where for example
directory thumbnails would show old items, since it never was told to
update.

M  +7    -0    src/core/kcoredirlister.cpp

https://invent.kde.org/frameworks/kio/-/commit/bddc77cd03e2e3c388a7c0ee77131c56ce2699bc