if event listeners are case insensitive, make them really case
insensitive svn path=/trunk/KDE/kdebase/runtime/; revision=1182727
This commit is contained in:
parent
30072e63a3
commit
5c3c9106be
@ -579,11 +579,11 @@ bool ScriptEnv::hasEventListeners(const QString &event) const
|
|||||||
|
|
||||||
bool ScriptEnv::callEventListeners(const QString &event, const QScriptValueList &args)
|
bool ScriptEnv::callEventListeners(const QString &event, const QScriptValueList &args)
|
||||||
{
|
{
|
||||||
if (!m_eventListeners.contains(event)) {
|
if (!m_eventListeners.contains(event.toLower())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
QScriptValueList funcs = m_eventListeners.value(event);
|
QScriptValueList funcs = m_eventListeners.value(event.toLower());
|
||||||
QMutableListIterator<QScriptValue> it(funcs);
|
QMutableListIterator<QScriptValue> it(funcs);
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
callFunction(it.next(), args);
|
callFunction(it.next(), args);
|
||||||
|
Loading…
Reference in New Issue
Block a user