Commit d2e3f679 authored by Fabian Vogt's avatar Fabian Vogt
Browse files

Create proper QUrls for recent document actions

The resource can either be a URL or an absolute path, the url() method
converts the latter into a proper URL.

CCBUG: 457685
parent 437e83ee
Pipeline #216818 passed with stage
in 9 minutes and 46 seconds
......@@ -290,10 +290,9 @@ QVariantList recentDocumentActions(const KService::Ptr &service)
while (list.count() < 6 && resultIt != results.end()) {
const QString resource = (*resultIt).resource();
const QString mimeType = (*resultIt).mimetype();
const QUrl url = (*resultIt).url();
const QUrl url(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