if event listeners are case insensitive, make them really case

insensitive

svn path=/trunk/KDE/kdebase/runtime/; revision=1182727
This commit is contained in:
Marco Martin 2010-10-05 13:36:05 +00:00
parent 30072e63a3
commit 5c3c9106be

View File

@ -579,11 +579,11 @@ bool ScriptEnv::hasEventListeners(const QString &event) const
bool ScriptEnv::callEventListeners(const QString &event, const QScriptValueList &args)
{
if (!m_eventListeners.contains(event)) {
if (!m_eventListeners.contains(event.toLower())) {
return false;
}
QScriptValueList funcs = m_eventListeners.value(event);
QScriptValueList funcs = m_eventListeners.value(event.toLower());
QMutableListIterator<QScriptValue> it(funcs);
while (it.hasNext()) {
callFunction(it.next(), args);