[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdeplasma-addons/plasma/sreich/youtube-runner] runners/youtube: disable executables
From:       Shaun Reich <shaun.reich () kdemail ! net>
Date:       2012-02-26 20:40:09
Message-ID: 20120226204009.74F17A60A6 () git ! kde ! org
[Download RAW message or body]

Git commit dbaf82a8836146440c083fd7bd98e86ec743538f by Shaun Reich.
Committed on 26/02/2012 at 21:39.
Pushed by sreich into branch 'plasma/sreich/youtube-runner'.

disable executables

M  +4    -2    runners/youtube/youtube.cpp

http://commits.kde.org/kdeplasma-addons/dbaf82a8836146440c083fd7bd98e86ec743538f

diff --git a/runners/youtube/youtube.cpp b/runners/youtube/youtube.cpp
index 57e6a2b..c7bf989 100644
--- a/runners/youtube/youtube.cpp
+++ b/runners/youtube/youtube.cpp
@@ -31,6 +31,7 @@
 #include <QtCore/QEventLoop>
 #include <qfile.h>
 #include <QtGui/QIcon>
+#include <qpushbutton.h>
 #include <qjson/parser.h>
 #include <kde4/KDE/KRun>
 
@@ -48,7 +49,7 @@ YouTube::YouTube(QObject *parent, const QVariantList& args)
     s.addExampleQuery(QLatin1String("youtube :q:"));
     addSyntax(s);
 
-//    addSyntax(Plasma::RunnerSyntax(QLatin1String("youtube"), i18n("Lists the \
videos matching the query, using YouTube search"))); +    \
addSyntax(Plasma::RunnerSyntax(QLatin1String("youtube"), i18n("Lists the videos \
matching the query, using YouTube search")));  setSpeed(SlowSpeed);
     setPriority(LowPriority);
 }
@@ -82,7 +83,8 @@ void YouTube::match(Plasma::RunnerContext &context)
 
 void YouTube::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch \
&match)  {
-    KRun::runUrl(match.data().toString(), "text/html", 0);
+    KRun *opener = new KRun(match.data().toString(), 0);
+    opener->setRunExecutables(false);
 }
 
 void YouTube::parseJson(const QByteArray& data, Plasma::RunnerContext &context)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic