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;
}
const QString func("action_" + name);
if (!m_env->callEventListeners(func)) {
callPlasmoidFunction(func, QScriptValueList(), m_env);
if (m_declarativeWidget->rootObject()) {
m_declarativeWidget->rootObject()->metaObject()->invokeMethod("action_" + name);
}
}