Bug 507264 - Parent folder shows item count 0 when expanded
Summary: Parent folder shows item count 0 when expanded
Status: RESOLVED DUPLICATE of bug 414424
Alias: None
Product: digikam
Classification: Applications
Component: Albums-TreeView (other bugs)
Version First Reported In: 8.6.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-20 09:26 UTC by malte.boensch
Modified: 2025-07-20 19:11 UTC (History)
2 users (show)

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


Attachments
expanded (18.05 KB, image/png)
2025-07-20 09:26 UTC, malte.boensch
Details
collapsed (8.74 KB, image/png)
2025-07-20 09:26 UTC, malte.boensch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description malte.boensch 2025-07-20 09:26:20 UTC
Created attachment 183373 [details]
expanded

SUMMARY
In the album tree view the item count of the parent folder (in my attached example "2015") is showing 0 when the folder is expanded. 

STEPS TO REPRODUCE
1. Make sure the checkbox is activated (I am posting the German names, as I am not 100% if my English translation is correct):
settings -> digikam setup ("Digikam einrichten") -> Views ("Ansichten") -> Tree view ("Baumansichten") -> Show number of items in all tree views (Anzahl der Einträge in allen Baumansichten anzeigen) 
2. View an album in the album tree view sidebar with subfolders while collapsed. It should show a number if the subfolders have items.
3. Expand one album in the album tree view sidebar with subfolders. It should now show 0 while the subfolders do have items.

OBSERVED RESULT
When expanded the parent folder shows 0

EXPECTED RESULT
should still show the same number (1444 in my case)

SOFTWARE/OS VERSIONS
Windows:  x
Comment 1 malte.boensch 2025-07-20 09:26:40 UTC
Created attachment 183374 [details]
collapsed
Comment 2 Maik Qualmann 2025-07-20 12:35:14 UTC
See bug 414424 for why the current behavior exists.

Maik

*** This bug has been marked as a duplicate of bug 414424 ***
Comment 3 Maik Qualmann 2025-07-20 19:11:42 UTC
The albums view is correct, it is not about the number of folders, but about the number of items in the album in the expanded state.

Maik