Bug 399338 - Count of items in Tree Views does not match total number of items
Summary: Count of items in Tree Views does not match total number of items
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Albums-TreeView (show other bugs)
Version: 6.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-03 14:54 UTC by MarcP
Modified: 2018-10-03 17:59 UTC (History)
2 users (show)

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


Attachments
Item count when the tag is collapsed (174.10 KB, image/jpeg)
2018-10-03 14:54 UTC, MarcP
Details
Item count when the tag is expanded (187.77 KB, image/jpeg)
2018-10-03 14:55 UTC, MarcP
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MarcP 2018-10-03 14:54:56 UTC
Created attachment 115381 [details]
Item count when the tag is collapsed

SUMMARY
The count of items in the Tag tree view is higher than the amount of items containing that tag when that tag tree is collapsed. See attached images.


STEPS TO REPRODUCE
1. Enable "Show a count of items in Tree Views"
2. Go to the Tags Panel. 
3. Select a top level hierarchical tag. Observe the number next to the tag and observe the amount of items contained that tag.
4. Expand that tag. Note that the number changed, but the amount of items is the same.

OBSERVED RESULT
Item count for a hierarchical tag does is higher than the number of items containing that tag. 


EXPECTED RESULT
The item count should be equal to the amount of items that have that tag, regardless of sub-tags.

Possibly sub-tags are added to the total number?

SOFTWARE VERSIONS
digiKam-6.0.0-beta1-20181002T190145-Win64.exe on Windows 10 64 bit.
Comment 1 MarcP 2018-10-03 14:55:24 UTC
Created attachment 115382 [details]
Item count when the tag is expanded
Comment 2 Maik Qualmann 2018-10-03 15:38:38 UTC
Yes, the behavior is so desired, so you know how many images are in a closed group together.

Maik
Comment 3 MarcP 2018-10-03 17:24:25 UTC
Ok, then it's fine I guess. I was a bit confused at first.