Commit 3dafdf35 authored by Emmanuel Pescosta's avatar Emmanuel Pescosta
Browse files

Fix Bug 320335 - Problem with tree view when using programs:/ protocol

Create directories without trailing slashes, like every other kio slave does.

BUG: 320335
REVIEW: 110924
FIXED-IN: 4.11
parent 82742975
......@@ -167,6 +167,7 @@ void ApplicationsProtocol::listDir(const KUrl& url)
QString relPath = g->relPath();
KUrl dirUrl = url; // preserve protocol, whether that's programs:/ or applications:/
dirUrl.setPath('/' + relPath);
dirUrl.adjustPath(KUrl::RemoveTrailingSlash);
kDebug() << "ApplicationsProtocol: adding entry" << dirUrl;
createDirEntry(entry, groupCaption, dirUrl.url(), "inode/directory", g->icon());
......
Supports Markdown
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