Bug 502612

Summary: When Filtering by Tag, it is not possible to select a tree of tags, then select the tag filter mode.
Product: [Applications] digikam Reporter: Gareth <g01z>
Component: Albums-FiltersAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version First Reported In: 8.7.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Gareth 2025-04-09 14:57:27 UTC
When Filtering by Tag, it is not possible to select a tree of tags, then select the tag filter mode. This makes filtering all images without a tag linking it to a place for example practically impossible.

STEPS TO REPRODUCE
1.  Select a tag for places - in my case "places"
2.  Right click on "places" tag > select > children (result: tag tree is selected)
3.  Right click on "places" tag > Tag Filter mode > "Must not have this tag"

OBSERVED RESULT

Only the parent tag has the filter mode changed

EXPECTED RESULT

The entire selected tree of tags is not set to "must not have this tag" (since it is not an available option when selecting multiple tags).

SOFTWARE/OS VERSIONS
Windows: 11

ADDITIONAL INFORMATION
Digikam Version 8.6.0, build date: 14/03/2025 17:44
Comment 1 caulier.gilles 2025-04-11 18:13:46 UTC
Hi,

The 8.7.0 pre-release Windows installer from today have been rebuilt from
scratch with Qt 6.8.3, KDE 6.12, OpenCV 4.11 + CUDA support, Exiv2 0.28.5, ExifTool 13.27, ffmpeg 7, all image codecs updated to last version (jxl, avif, heif, aom, etc.).

Please try with this version to see if your problem still reproducible...

https://files.kde.org/digikam/

Thanks in advance
Best regards

Gilles Caulier
Comment 2 Gareth 2025-04-11 20:14:25 UTC
Hi. Thanks for the suggestion, but I've now downloaded and tested this in the version 8.7.0 for windows - the issue remains.
Fundamentally, the inversion of filtering for a tree of selected tags is not possible without individually swiching the method of filtering from + to - for each and every tag selected (rather than applying the operation to all children too always - or having the option to).
Comment 3 Gareth 2025-04-12 05:58:26 UTC
I have found that there is a way of achieving this currently - one has to enable auto select of child nodes when selecting a tag in the filter. With autoselect applied, when you invert the way the filter works on the parent (from the context menu for that node), the change is cascaded to all child nodes too.