[dolphin] [Bug 500502] Dolphin size column does not update for folders when a new file is created

"A. Ismail" <[email protected]>
Newsgroups gmane.comp.kde.devel.kfm
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=500502

--- Comment #12 from A. Ismail <[email protected]> ---
(In reply to Akseli Lahtinen from comment #11)
> Git commit dd2cc41fdeed515f8b7921caa9da823e3cba424c by Akseli Lahtinen.
> Committed on 13/03/2025 at 12:26.
> Pushed by akselmo into branch 'master'.
> 
> KFileItemModelRolesUpdater: reset size and count before updating folders
> 
> Folder count would not update properly when user would delete file from
> a folder, or add a new file to it.
> 
> Previously when size value is set to -2 after update, the update will
> never be called again unless user presses F5. This change will instead
> reset that -2 to 0 whenever we are requesting for calculating
> directory sizes. 
> 
> We never updated the count when a file was deleted, so that has been added
> as well.
> 
> This change also calculates the item counts from the processedAmount, which
> is the total amount of items we're processing. From there we remove the
> unwanted items and get the final count.
> 
> For remote files, we set the count to -1 since we don't calculate them.
> 
> M  +58   -7    src/kitemviews/kfileitemmodelrolesupdater.cpp
> M  +4    -0    src/kitemviews/kfileitemmodelrolesupdater.h
> 
> https://invent.kde.org/system/dolphin/-/commit/
> dd2cc41fdeed515f8b7921caa9da823e3cba424c

I tried on Both Fedora 41 (Dolphin 24.12.3) and Debian unstable (25.03.90-1)
with the latest upstream release and the bug is still there. Did I miss
something or the patch wasn't integrated into the latest release?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.