diff --git a/applet.cpp b/applet.cpp index 29de4fcd7..2216f43c0 100644 --- a/applet.cpp +++ b/applet.cpp @@ -1959,6 +1959,7 @@ void Applet::setAssociatedApplication(const QString &string) QAction *runAssociatedApplication = d->actions->action("run associated application"); if (runAssociatedApplication) { bool valid = AssociatedApplicationManager::self()->appletHasValidAssociatedApplication(this); + valid = valid && hasAuthorization("LaunchApp"); //obey security! runAssociatedApplication->setVisible(valid); runAssociatedApplication->setEnabled(valid); } @@ -1971,6 +1972,7 @@ void Applet::setAssociatedApplicationUrls(const KUrl::List &urls) QAction *runAssociatedApplication = d->actions->action("run associated application"); if (runAssociatedApplication) { bool valid = AssociatedApplicationManager::self()->appletHasValidAssociatedApplication(this); + valid = valid && hasAuthorization("LaunchApp"); //obey security! runAssociatedApplication->setVisible(valid); runAssociatedApplication->setEnabled(valid); } @@ -1988,7 +1990,9 @@ KUrl::List Applet::associatedApplicationUrls() const void Applet::runAssociatedApplication() { - AssociatedApplicationManager::self()->run(this); + if (hasAuthorization("LaunchApp")) { + AssociatedApplicationManager::self()->run(this); + } } bool Applet::hasValidAssociatedApplication() const