Bug 443030 - Tag subtree shown, even if deselected
Summary: Tag subtree shown, even if deselected
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-MainView (other bugs)
Version First Reported In: 7.3.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-27 20:38 UTC by Jan van Bekkum
Modified: 2022-01-07 05:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 7.4.0
Sentry Crash Report:


Attachments
Screendump (352.29 KB, image/jpeg)
2021-09-28 06:17 UTC, Jan van Bekkum
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan van Bekkum 2021-09-27 20:38:38 UTC
SUMMARY


STEPS TO REPRODUCE
1. deselect View | Include Tag Sub-Tree
2. Select tag with sub-tags
3. 

OBSERVED RESULT
All items with tag are shown, also ones with a sub-tag

EXPECTED RESULT
Items with sub-tage are not shown

SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2021-09-27 20:56:18 UTC
I cannot reproduce the problem. It is possible that your TagsTree table has an error. SQLite or MySQL database?

Maik
Comment 2 Maik Qualmann 2021-09-27 20:59:06 UTC
However, it would be normal for items to be displayed with sub tags, only the sub-tags items themselves must not be displayed. Maybe post a screenshot after all.

Maik
Comment 3 Jan van Bekkum 2021-09-28 06:17:17 UTC
Created attachment 141977 [details]
Screendump

I would expect the top 5 images not to be displayed when I deselect View | Tag-Sub-tree, because they have the sub-tag Zaventem. However, they are always shown.
Comment 4 Maik Qualmann 2021-09-28 06:40:32 UTC
I see no mistake, that shows 9 items of "Belgie". An error would be if the 5 items of "Zaventem" are also displayed. It's about that in the view the sub tags are not displayed. The items in "Belgie" also tagged with "Zaventem" plays no role.

Maik
Comment 5 Maik Qualmann 2021-09-28 08:02:33 UTC
The last sentence in the previous comment was worded incorrectly. Since the items under "Zaventem" are also tagged with "Belgie", they are of course also displayed. If you want to hide items that are tagged with "Zaventem", you have to use the filter in the right sidebar.

Maik
Comment 6 Jan van Bekkum 2021-09-28 08:12:48 UTC
Thanks a lot for your quick and extensive responses. It is clear to me now how it works.

I was looking for a way to display the images that have the main tag (België in the example), but not any sub-tag. For the screenshot I chose a simple example, but the real case I was looking at a main tag with a couple of thousands of images and tens of sub-tags, the images with the sub-tags also all having the main tag. To filter the images that have the main tag only I suppose I would need to (temporarily) remove the main tag from all sub-tagged items (remove België from the Zaventem images in the example).
Comment 7 Maik Qualmann 2021-09-28 09:53:08 UTC
No, you don't have to remove all of the sub-tags. The filter in the right sidebar has a "NOT" option. You can also carry out an advanced search, here too there is the option to only search for items that contain "Belgie" and not other tags.

Maik
Comment 8 Jan van Bekkum 2021-09-28 10:15:47 UTC
Thanks Maik!

Regards,

Jan