if the applet has failed, then don't return actions for it

This commit is contained in:
Aaron Seigo 2011-09-22 18:36:18 +02:00
parent 691f590664
commit 7497948a2b

View File

@ -223,6 +223,9 @@ QList<QAction*> AppletInterface::contextualActions() const
{
QList<QAction*> actions;
Plasma::Applet *a = applet();
if (a->hasFailedToLaunch()) {
return actions;
}
foreach (const QString &name, m_actions) {
QAction *action = a->action(name);