Fix cache directory calculation when adding to trash
ClosedPublic

Authored by meven on Apr 19 2020, 8:20 AM.

Details

Summary

The directory size was not added to the directory cache size since D24773

Test Plan

Moved a folder to trash.
Its size is visible in
~/.local/share/Trash/directorysizes

Diff Detail

Repository
R241 KIO
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
meven created this revision.Apr 19 2020, 8:20 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptApr 19 2020, 8:20 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
meven requested review of this revision.Apr 19 2020, 8:20 AM
dfaure accepted this revision.Apr 19 2020, 9:06 AM

Good catch. I wonder if the unittest could be extended so it would have caught this.

This revision is now accepted and ready to land.Apr 19 2020, 9:06 AM
meven updated this revision to Diff 80534.Apr 19 2020, 12:20 PM

Add test

This revision was automatically updated to reflect the committed changes.

Thanks. >0 is already something :-)