Commit adb85400 authored by Jonathan Marten's avatar Jonathan Marten
Browse files

nfs (v3): Show a "folder-network" icon for virtual directories

That is, those that have been found from the server export list.
parent 6c088cd7
......@@ -365,10 +365,16 @@ void NFSProtocolV3::listDir(const QUrl& url)
KIO::UDSEntry entry;
entry.fastInsert(KIO::UDSEntry::UDS_NAME, ".");
entry.fastInsert(KIO::UDSEntry::UDS_ICON_NAME, "folder-network");
for (QStringList::const_iterator it = virtualList.constBegin(); it != virtualList.constEnd(); ++it) {
entry.replace(KIO::UDSEntry::UDS_NAME, (*it));
for (QStringList::const_iterator it = virtualList.constBegin();
it != virtualList.constEnd(); ++it) {
const QString &name = (*it);
entry.replace(KIO::UDSEntry::UDS_NAME, name);
if (isExportedDir(dirPrefix+name)) entry.replace(KIO::UDSEntry::UDS_ICON_NAME, "folder-network");
else entry.replace(KIO::UDSEntry::UDS_ICON_NAME, "folder");
......@@ -699,6 +705,7 @@ void NFSProtocolV3::stat(const QUrl& url)
KIO::UDSEntry entry;
entry.fastInsert(KIO::UDSEntry::UDS_NAME, path);
entry.fastInsert(KIO::UDSEntry::UDS_ICON_NAME, "folder-network");
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