fix invoke of context actions in qml plasmoids
This commit is contained in:
parent
faccd995e2
commit
925e330807
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user