Commit 2da458ed authored by Fabian Vogt's avatar Fabian Vogt

Merge branch 'FixOverrideUrl' into 'master'

Don't assume UDSEntry::UDS_URL is a local URL

See merge request kde/kio-fuse!22
parents 546a4d2d 1edeb7cb
......@@ -1554,7 +1554,7 @@ std::shared_ptr<KIOFuseNode> KIOFuseVFS::createNodeFromUDSEntry(const KIO::UDSEn
{
attr.st_mode |= S_IFREG;
std::shared_ptr<KIOFuseRemoteFileNode> ret = nullptr;
const QUrl nodeUrl = QUrl::fromLocalFile(entry.stringValue(KIO::UDSEntry::UDS_URL));
const QUrl nodeUrl = QUrl{entry.stringValue(KIO::UDSEntry::UDS_URL)};
if(m_useFileJob && KProtocolManager::supportsOpening(nodeUrl) && KProtocolManager::supportsTruncating(nodeUrl))
ret = std::make_shared<KIOFuseRemoteFileJobBasedFileNode>(parentIno, name, attr);
else
......
Markdown is supported
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