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

List:       kde-commits
Subject:    extragear/multimedia/amarok/src/context/applets/wikipedia
From:       Mark Kretschmann <kretschmann () kde ! org>
Date:       2008-11-02 11:10:32
Message-ID: 1225624232.062592.6071.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 878985 by markey:

Use the Right Way (TM) to open web pages in external browser.

BUG: 171995


 M  +3 -2      WikipediaApplet.cpp  


--- trunk/extragear/multimedia/amarok/src/context/applets/wikipedia/WikipediaApplet.cpp #878984:878985
@@ -19,8 +19,8 @@
 #include "EngineController.h"
 #include <plasma/theme.h>
 
-#include <KRun>
 #include <KStandardDirs>
+#include <KToolInvocation>
 
 #include <QGraphicsTextItem>
 #include <QGraphicsSimpleTextItem>
@@ -112,7 +112,8 @@
 {
     DEBUG_BLOCK
     debug() << "URL: " << url;
-    KRun::runUrl( url, "text/html", 0  );    
+
+    KToolInvocation::invokeBrowser( url.toString() );
 }
 
 void WikipediaApplet::constraintsEvent( Plasma::Constraints constraints )
[prev in list] [next in list] [prev in thread] [next in thread] 

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