Bug 431452

Summary: Maybe Dolphin should shows folder size/counter for empty folders too
Product: [Applications] dolphin Reporter: Denys Madureira <denysmb112007>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: bhancerli, kfm-devel, nate
Priority: NOR Keywords: junior-jobs
Version: 20.12.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 21.04
Attachments: Example
Empty folder size is shown properly

Description Denys Madureira 2021-01-11 17:26:38 UTC
Created attachment 134746 [details]
Example

SUMMARY
In Dolphin, if we add "size" to the additional informations, the size of file and folders appears below the folder title. If in a folder we have 4 items, it shows "4 itens" but if a folder is empty, instead of appears "0 item", it just show nothing. So, it make the Dolphin a bit stranger, because below some folders we have a additional line, an below other (empty folders) we don't have.

STEPS TO REPRODUCE
1. In menu, go to "Edit exibition's style" (or something like that, my OS is not in english)
2. In "additional informations" select "size"
3. Apply

OBSERVED RESULT
In folders with one or more items appears the second line with the counter of items. In empty folders, the second line just doesn't appear.

EXPECTED RESULT
In empty folders, should have appear a new line with "0 item", to maintain the consistency of design.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Comment 1 hancerli 2021-04-22 19:14:52 UTC
Hi there,

Even though there's no reference in the codebase, this one seems resolved in version 21.07.70
Comment 2 hancerli 2021-04-22 19:19:09 UTC
Created attachment 137805 [details]
Empty folder size is shown properly
Comment 3 hancerli 2021-04-22 19:54:30 UTC
Sorry, I believe this commit has fixed the issue:

https://invent.kde.org/system/dolphin/-/commit/acc42f918925983e2e83501cd2bacc7952a55718