From 80fae8f7a3736ff46447d795279f6cc16b64c458 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sun, 3 Jun 2007 19:59:24 +0000 Subject: [PATCH] use krun instead of qprocess and make sure that we don't block our own process. you can see this happen in the second screencast, actually, and it's really lame ;) svn path=/trunk/KDE/kdebase/workspace/lib/plasma/; revision=671108 --- corona.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/corona.cpp b/corona.cpp index 0d4168416..eb53d6141 100644 --- a/corona.cpp +++ b/corona.cpp @@ -23,10 +23,10 @@ #include #include #include -#include #include #include +#include #include #include "applet.h" @@ -255,6 +255,7 @@ void Corona::contextMenuEvent(QGraphicsSceneContextMenuEvent *contextMenuEvent) } */ + contextMenuEvent->accept(); Applet* applet = qgraphicsitem_cast(itemAt(point)); KMenu desktopMenu; if(!applet) { @@ -280,12 +281,11 @@ void Corona::contextMenuEvent(QGraphicsSceneContextMenuEvent *contextMenuEvent) desktopMenu.addAction(closeApplet); } desktopMenu.exec(point.toPoint()); - contextMenuEvent->accept(); } void Corona::launchExplorer() { - QProcess::execute("plasmaengineexplorer"); + KRun::run("plasmaengineexplorer", KUrl::List(), 0); } void Corona::appletDestroyed(QObject* object)