Set a valid url for UDS_URL, basically one that includes files://
In Qt5 QUrl need to be created by calling fromLocalFile to handle paths such /root/foo.txt. So KIO apparently broke compatibility with setting such paths in UDS_URL and we have to pass instead files:///root/foo.txt Altought this might be a bug in KIO, we want to work with all KF5 based versions of plasma and this patch will just do that. REVIEW:124544
This commit is contained in:
parent
4acfaa8b12
commit
886787f732
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ void KioKdeconnect::listDevice()
|
|||
entry.insert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR);
|
||||
entry.insert(KIO::UDSEntry::UDS_ACCESS, S_IRUSR | S_IRGRP | S_IROTH);
|
||||
entry.insert(KIO::UDSEntry::UDS_MIME_TYPE, "");
|
||||
entry.insert(KIO::UDSEntry::UDS_URL, path);
|
||||
entry.insert(KIO::UDSEntry::UDS_URL, QUrl::fromLocalFile(path).toString());
|
||||
listEntry(entry);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue