use args for dataupdated too

svn path=/trunk/KDE/kdebase/runtime/; revision=1182724
This commit is contained in:
Marco Martin 2010-10-05 13:32:14 +00:00
parent 11f05f4df3
commit 30072e63a3

View File

@ -151,9 +151,10 @@ void SimpleJavaScriptApplet::dataUpdated(const QString &name, const DataEngine::
return;
}
if (!env->callEventListeners("dataUpdated")) {
QScriptValueList args;
args << m_engine->toScriptValue(name) << m_engine->toScriptValue(data);
QScriptValueList args;
args << m_engine->toScriptValue(name) << m_engine->toScriptValue(data);
if (!env->callEventListeners("dataUpdated", args)) {
callPlasmoidFunction("dataUpdated", args, env);
}
}