diff options
| author | Pan Zhang <[email protected]> | 2026-05-13 18:40:25 +0800 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-05-13 10:40:25 +0000 |
| commit | 914cd9010b52125a01e607c0b0f08401be225106 (patch) | |
| tree | ce3406a5c132b7745742cda6ac58b04dc7704089 /src/kitemviews/kitemlistcontroller.h | |
| parent | 66e66b7c2881cfb182ec4bf0b18a959371748300 (diff) | |
kfileitemmodelrolesupdater: fix directory item count for large folders
Dolphin reported an incorrect item count in the "Size" column for directories containing 200 or more entries.
Use KIO::ListJob::ListFlag::ExcludeDotAndDotDot and ExcludeHidden to filter entries at the source.
Use a local counter (totalCount) captured via std::shared_ptr in the lambda to ensure each scan job starts from zero and maintains its own state.
Add a fast path using list.size() when showDirectoriesOnly is false to improve performance.
BUG: 509150
Diffstat (limited to 'src/kitemviews/kitemlistcontroller.h')
0 files changed, 0 insertions, 0 deletions
