https://bugs.kde.org/show_bug.cgi?id=509150

Méven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/syst
                   |                            |em/dolphin/-/commit/914cd90
                   |                            |10b52125a01e607c0b0f08401be
                   |                            |225106

--- Comment #7 from Méven <[email protected]> ---
Git commit 914cd9010b52125a01e607c0b0f08401be225106 by Méven Car, on behalf of
Pan Zhang.
Committed on 13/05/2026 at 10:40.
Pushed by meven into branch 'master'.

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.

M  +25   -21   src/kitemviews/kfileitemmodelrolesupdater.cpp

https://invent.kde.org/system/dolphin/-/commit/914cd9010b52125a01e607c0b0f08401be225106

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to