diff options
| author | Ilia Kats <[email protected]> | 2020-12-15 22:20:51 +0100 |
|---|---|---|
| committer | Ilia Kats <[email protected]> | 2020-12-17 13:04:01 +0100 |
| commit | acc42f918925983e2e83501cd2bacc7952a55718 (patch) | |
| tree | 343af939dc0b54b07070396d99bab4bc5f5b48fc /src/kitemviews/kfileitemmodelrolesupdater.cpp | |
| parent | d74853ef850fdabf2dfad8fcbe634af8185fce36 (diff) | |
fix display of folder sizes for empty folders
also fixes 1 byte error in size calculation for all folders
Diffstat (limited to 'src/kitemviews/kfileitemmodelrolesupdater.cpp')
| -rw-r--r-- | src/kitemviews/kfileitemmodelrolesupdater.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kitemviews/kfileitemmodelrolesupdater.cpp b/src/kitemviews/kfileitemmodelrolesupdater.cpp index 075ec888a..3bd6d977d 100644 --- a/src/kitemviews/kfileitemmodelrolesupdater.cpp +++ b/src/kitemviews/kfileitemmodelrolesupdater.cpp @@ -776,9 +776,7 @@ void KFileItemModelRolesUpdater::slotDirectoryContentsCountReceived(const QStrin if (getSizeRole) { data.insert("count", count); - if (size != -1) { - data.insert("size", QVariant::fromValue(size)); - } + data.insert("size", QVariant::fromValue(size)); } if (getIsExpandableRole) { data.insert("isExpandable", count > 0); |
