Skip to content

cherry-pick-attica-kde: Use the correct location for determining the max cache size

Fushan Wen requested to merge cherry-pick-63788e65 into Plasma/5.27

QStorageInfo returns -1 there if the cache directory didn't exist yet. QNetworkDiskCache happily accepts 0 as max size and eagerly deletes everything it can on every occasion, triggering cache corruption.

BUG: 464517

(cherry picked from commit 63788e65)

Merge request reports

Loading