[kio] Fix file browsing with non-KIO file managers
This commit is contained in:
parent
49900be89f
commit
b0ae40f791
1 changed files with 7 additions and 0 deletions
|
@ -212,6 +212,13 @@ void KioKdeconnect::stat(const QUrl& url)
|
|||
|
||||
KIO::UDSEntry entry;
|
||||
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);
|
||||
|
||||
finished();
|
||||
|
|
Loading…
Reference in a new issue