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
This commit is contained in:
parent
452816cec8
commit
80fae8f7a3
@ -23,10 +23,10 @@
|
||||
#include <QDesktopWidget>
|
||||
#include <QGraphicsSceneDragDropEvent>
|
||||
#include <QMimeData>
|
||||
#include <QProcess>
|
||||
|
||||
#include <KLocale>
|
||||
#include <KMenu>
|
||||
#include <KRun>
|
||||
#include <KWindowSystem>
|
||||
|
||||
#include "applet.h"
|
||||
@ -255,6 +255,7 @@ void Corona::contextMenuEvent(QGraphicsSceneContextMenuEvent *contextMenuEvent)
|
||||
}
|
||||
*/
|
||||
|
||||
contextMenuEvent->accept();
|
||||
Applet* applet = qgraphicsitem_cast<Applet*>(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)
|
||||
|
Loading…
Reference in New Issue
Block a user