Commit e44e2a7f authored by Stefan Brüns's avatar Stefan Brüns
Browse files

Set permissions for links in remote:, necessary for correct visualization

KFileItem uses UDS_ACCESS to determine permissions. Readability is
subsequently used to create the list of overlay icons.

CCBUG: 339193
parent 8a15d533
......@@ -223,6 +223,7 @@ void RemoteImpl::createEntry(KIO::UDSEntry &entry,
entry.insert( KIO::UDSEntry::UDS_URL, "remote:/"+new_filename);
entry.insert( KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR);
entry.insert( KIO::UDSEntry::UDS_ACCESS, 0500);
entry.insert( KIO::UDSEntry::UDS_MIME_TYPE, QString::fromLatin1("inode/directory"));
const QString icon = desktop.readIcon();
Supports Markdown
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