[kio] Fix file browsing with non-KIO file managers

This commit is contained in:
Nicolas Fella 2019-03-12 13:38:49 +00:00
parent 49900be89f
commit b0ae40f791

View file

@ -212,6 +212,13 @@ void KioKdeconnect::stat(const QUrl& url)
KIO::UDSEntry entry; KIO::UDSEntry entry;
entry.insert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR); entry.insert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR);
QString currentDevice = url.host();
if (!currentDevice.isEmpty()) {
SftpDbusInterface interface(currentDevice);
entry.insert(KIO::UDSEntry::UDS_LOCAL_PATH, interface.mountPoint());
}
statEntry(entry); statEntry(entry);
finished(); finished();