Bug 477225 - Number of item with Tag incorrectly show unless tree is expanded
Summary: Number of item with Tag incorrectly show unless tree is expanded
Status: RESOLVED DUPLICATE of bug 414424
Alias: None
Product: digikam
Classification: Applications
Component: Albums-TreeView (show other bugs)
Version: 8.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-19 10:44 UTC by Steve Franks
Modified: 2023-11-24 10:15 UTC (History)
1 user (show)

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


Attachments
Unexpanded Tag (1.60 KB, image/jpeg)
2023-11-19 10:44 UTC, Steve Franks
Details
Expanded Tag (3.03 KB, image/png)
2023-11-19 10:45 UTC, Steve Franks
Details
attachment-129098-0.html (1.41 KB, text/html)
2023-11-24 10:15 UTC, Steve Franks
Details

Note You need to log in before you can comment on or make changes to this bug.
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.