From 8a9772d8673a58583317b4906a9352d6bf44a8e2 Mon Sep 17 00:00:00 2001 From: Eike Hein Date: Tue, 24 May 2016 18:50:15 +0900 Subject: [PATCH 6/6] Fix opening recent docs on newer KF5. The KActivities model can return scheme-less local paths, and execution didn't go through the code path already handling this. BUG:363337 --- applets/kicker/plugin/recentusagemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/kicker/plugin/recentusagemodel.cpp b/applets/kicker/plugin/recentusagemodel.cpp index d6fe840..0003016 100644 --- a/applets/kicker/plugin/recentusagemodel.cpp +++ b/applets/kicker/plugin/recentusagemodel.cpp @@ -273,7 +273,7 @@ bool RecentUsageModel::trigger(int row, const QString &actionId, const QVariant const QString &resource = resourceAt(row); if (!resource.startsWith(QLatin1String("applications:"))) { - new KRun(QUrl(resource), 0); + new KRun(docData(resource, Kicker::UrlRole).toUrl(), 0); return true; } -- 2.7.4