Bug 514027

Summary: Preview of last rejected item from a given filtering list remain on screen, even if the list is emptied
Product: [Applications] digikam Reporter: omimet <omimet>
Component: Albums-FiltersAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: normal CC: metzpinguin
Priority: NOR    
Version First Reported In: 9.0.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Preview of an emptied filtering list
attachment-3642866-0.html
attachment-3645819-0.html

Description omimet@free.fr 2026-01-01 00:48:54 UTC
Created attachment 188123 [details]
Preview of an emptied filtering list

SUMMARY
The preview of the last item rejected from a given filtered list (Label=Pending as example)  by switching out the filtering condition (turning Label "Pending" to "Rejected" by example) is still displayed, even if the list is emptied.

STEPS TO REPRODUCE
1. open the main album view/Preview mode
2. tag one item as "Pending" (or all others criteria)
3. Right Sidebar/Filter/Label="Pending" (or all others criterias)
=> Previw of the tagged item is displayed ...
4. turn Label of this item to "Rejected" (or all others criterias)

OBSERVED RESULT
The list of filtered items is emptied as expected, but the preview continue to display the last rejected item
NB : the preview disappear as expected for previous rejected items than the last one

EXPECTED RESULT
Preview should be emptied as soon as the filteriing list is it too...


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 43/Wayland
KDE Plasma Version: NA
KDE Frameworks Version: NA
Qt Version: NA
Comment 1 Maik Qualmann 2026-01-01 07:21:24 UTC
The filter applies to the current album. If you preview an item and the filter changes, the preview remains. The preview always refers to the last selected item. I personally don't like the idea of ​​displaying an "empty" preview or automatically reverting to the icon view.

Maik
Comment 2 omimet@free.fr 2026-01-01 10:33:28 UTC
Created attachment 188127 [details]
attachment-3642866-0.html

Ok : we can use as it...
Best wishes to you!

⁣Télécharger BlueMail pour Android ​

Le 1 janv. 2026, 08:21, à 08:21, Maik Qualmann <bugzilla_noreply@kde.org> a écrit:
>https://bugs.kde.org/show_bug.cgi?id=514027
>
>Maik Qualmann <metzpinguin@gmail.com> changed:
>
>           What    |Removed                     |Added
>----------------------------------------------------------------------------
>                 CC|                            |metzpinguin@gmail.com
>
>--- Comment #1 from Maik Qualmann <metzpinguin@gmail.com> ---
>The filter applies to the current album. If you preview an item and the
>filter
>changes, the preview remains. The preview always refers to the last
>selected
>item. I personally don't like the idea of ​​displaying an "empty"
>preview or
>automatically reverting to the icon view.
>
>Maik
>
>--
>You are receiving this mail because:
>You reported the bug.
Comment 3 omimet@free.fr 2026-01-01 10:48:04 UTC
Created attachment 188128 [details]
attachment-3645819-0.html

Just to highlight : changing the filtered tag of a preview item make the preview item disappear and not remain (as you wrote).... but only if it's not the last item of the selection.
The rule seems to display the next coming item, except if there is no one.
And it's understandable.
Olivier

⁣Télécharger BlueMail pour Android ​

Le 1 janv. 2026, 08:21, à 08:21, Maik Qualmann <bugzilla_noreply@kde.org> a écrit:
>https://bugs.kde.org/show_bug.cgi?id=514027
>
>Maik Qualmann <metzpinguin@gmail.com> changed:
>
>           What    |Removed                     |Added
>----------------------------------------------------------------------------
>                 CC|                            |metzpinguin@gmail.com
>
>--- Comment #1 from Maik Qualmann <metzpinguin@gmail.com> ---
>The filter applies to the current album. If you preview an item and the
>filter
>changes, the preview remains. The preview always refers to the last
>selected
>item. I personally don't like the idea of ​​displaying an "empty"
>preview or
>automatically reverting to the icon view.
>
>Maik
>
>--
>You are receiving this mail because:
>You reported the bug.