Ubuntu Pastebin

Paste from acheron at Tue, 24 May 2016 20:40:18 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Fix opening recent docs on newer KF5 from kicker menu
 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. 
Origin: upstream
Bug-KDE: https://bugs.kde.org/show_bug.cgi?id=363337
Forwarded: not-needed
Last-Update: 2015-05-24
---
Index: plasma-desktop-5.6.4/applets/kicker/plugin/recentusagemodel.cpp
===================================================================
--- plasma-desktop-5.6.4.orig/applets/kicker/plugin/recentusagemodel.cpp
+++ plasma-desktop-5.6.4/applets/kicker/plugin/recentusagemodel.cpp
@@ -273,7 +273,7 @@ bool RecentUsageModel::trigger(int row,
         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;
         }
Download as text