From b0ae40f791f9e2dd3f2243a055a8863e36b1b863 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Tue, 12 Mar 2019 13:38:49 +0000 Subject: [PATCH] [kio] Fix file browsing with non-KIO file managers --- kio/kiokdeconnect.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kio/kiokdeconnect.cpp b/kio/kiokdeconnect.cpp index 05c10acca..97224fb7f 100644 --- a/kio/kiokdeconnect.cpp +++ b/kio/kiokdeconnect.cpp @@ -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();