don't forget to pass the args

svn path=/trunk/KDE/kdebase/runtime/; revision=1182721
This commit is contained in:
Marco Martin 2010-10-05 13:30:38 +00:00
parent fb9a7394af
commit 11f05f4df3

View File

@ -168,7 +168,7 @@ void SimpleJavaScriptApplet::extenderItemRestored(Plasma::ExtenderItem* item)
QScriptValueList args;
args << m_engine->newQObject(item, QScriptEngine::AutoOwnership, QScriptEngine::PreferExistingWrapperObject);
if (!env->callEventListeners("initExtenderItem")) {
if (!env->callEventListeners("initExtenderItem", args)) {
callPlasmoidFunction("initExtenderItem", args, env);
}
}