Commit 83c72c71 authored by David Edmundson's avatar David Edmundson
Browse files

Correctly construct URL from local file

KActivities stores a file path

We want to create a URL.
QUrl(somePath)   doesn't include the scheme i.e "file:/" which can have
repercusions elsewhere

(cherry picked from commit 8a1cad91)
parent 6295f3fd
......@@ -364,7 +364,7 @@ QVariantList Backend::recentDocumentActions(const QUrl &launcherUrl, QObject *pa
const QString resource = (*resultIt).resource();
const QUrl url(resource);
const QUrl url = QUrl::fromLocalFile(resource);
if (!url.isValid()) {
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