Commit 52fa2deb authored by Méven Car's avatar Méven Car

Allow non-local directories to provide UDS_SIZE

Summary:
FIXED-IN: 19.12
BUG: 413091

Relates to D24773

Reviewers: ngraham, elvisangelaccio, bruns, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: #baloo

Tags: #baloo

Differential Revision: https://phabricator.kde.org/D24774
parent dcbb6f31
......@@ -181,6 +181,11 @@ void FileMetaDataProvider::insertSingleFileBasicData()
}
}
}
else if (item.entry().contains(KIO::UDSEntry::UDS_SIZE)) {
isSizeUnknown = false;
KFormat format;
m_data.insert(QStringLiteral("kfileitem#size"), format.formatByteSize(item.size()));
}
if (isSizeUnknown) {
m_data.insert(QStringLiteral("kfileitem#size"), i18nc("unknown file size", "Unknown"));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment