Bug 477225

Summary: Number of item with Tag incorrectly show unless tree is expanded
Product: [Applications] digikam Reporter: Steve Franks <stevef48>
Component: Albums-TreeViewAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: minor CC: metzpinguin
Priority: NOR    
Version First Reported In: 8.2.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Unexpanded Tag
Expanded Tag
attachment-129098-0.html

Description Steve Franks 2023-11-19 10:44:33 UTC
Created attachment 163285 [details]
Unexpanded Tag

SUMMARY
Treeview wrongly reports number of items
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
When viewing Tags the number of items shown is incorrect if sub-tags are not shown, although it is correct if the tag tree is completely expanded.
e.g.
I have tags for birds. One tag (Calidris canutus) has been applied to 4 items, however the parent of this tag shows 8 items. When the tree is expanded to show Calidris canutus and its parent Knot each correctly shows 4 items.

STEPS TO REPRODUCE
1.  Apply a tag which has a parent, which is automatically applied. I don't know whether the same thing happens if the tag and its parent(s) are manually applied.
2.  In Settings|Application View Settings|Tree-Views tick 'Show a count of items in tree views
3. 

OBSERVED RESULT
Item count is incorrect if Tree View doesn't show children of Tags, but correct if the tree is expanded.

EXPECTED RESULT
Parent shows correct total of items which have the tag applied, whether that is the only tag or child tags exist.

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

ADDITIONAL INFORMATION
Build date: 29/10/2023 18:17 (target: RelWithDebInfo)
Comment 1 Steve Franks 2023-11-19 10:45:17 UTC
Created attachment 163286 [details]
Expanded Tag
Comment 2 Maik Qualmann 2023-11-19 10:52:42 UTC

*** This bug has been marked as a duplicate of bug 414424 ***
Comment 3 Steve Franks 2023-11-24 10:15:15 UTC
Created attachment 163422 [details]
attachment-129098-0.html

Thanks


On Sun, 19 Nov 2023 at 10:52, Maik Qualmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=477225
>
> Maik Qualmann <metzpinguin@gmail.com> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|REPORTED                    |RESOLVED
>                  CC|                            |metzpinguin@gmail.com
>          Resolution|---                         |DUPLICATE
>
> --- Comment #2 from Maik Qualmann <metzpinguin@gmail.com> ---
>
>
> *** This bug has been marked as a duplicate of bug 414424 ***
>
> --
> You are receiving this mail because:
> You reported the bug.