Commit 98bdfe9f authored by Méven Car's avatar Méven Car

Filesystem: Use KFileItem::name to get files name

KFileItem::text() returns human readable values.
To get name as file on disk name we need to use name().

BUG: 428850
parent 3f1d3292
......@@ -286,7 +286,7 @@ FileItem *FileSystem::createFileItemFromKIO(const KIO::UDSEntry &entry, const QU
{
const KFileItem kfi(entry, directory, true, true);
const QString name = kfi.text();
const QString name = kfi.name();
// ignore un-needed entries
if (name.isEmpty() || name == "." || name == "..") {
return nullptr;
......
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