QList<QAction*> AppletInterface::contextualActions() const { QList<QAction*> actions; Plasma::Applet *a = applet(); foreach (const QString &name, m_actions) { QAction *action = a->action(name); if (action) { actions << action; } }
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); if (action) { actions << action; } }