Bug 431452 - Maybe Dolphin should shows folder size/counter for empty folders too
Summary: Maybe Dolphin should shows folder size/counter for empty folders too
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 20.12.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2021-01-11 17:26 UTC by Denys Madureira
Modified: 2021-04-22 19:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 21.04


Attachments
Example (62.31 KB, image/png)
2021-01-11 17:26 UTC, Denys Madureira
Details
Empty folder size is shown properly (6.79 KB, image/png)
2021-04-22 19:19 UTC, hancerli
Details

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