fix invoke of context actions in qml plasmoids

This commit is contained in:
Marco Martin 2012-09-13 13:29:05 +02:00
parent faccd995e2
commit 925e330807

View File

@ -388,9 +388,8 @@ void DeclarativeAppletScript::executeAction(const QString &name)
return; return;
} }
const QString func("action_" + name); if (m_declarativeWidget->rootObject()) {
if (!m_env->callEventListeners(func)) { m_declarativeWidget->rootObject()->metaObject()->invokeMethod("action_" + name);
callPlasmoidFunction(func, QScriptValueList(), m_env);
} }
} }