[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/runtime/plasma/scriptengines/javascript/common
From: Marco Martin <notmart () gmail ! com>
Date: 2010-10-05 13:36:06
Message-ID: 20101005133606.6F4B43E1F1 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1182727 by mart:
if event listeners are case insensitive, make them really case
insensitive
M +2 -2 scriptenv.cpp
--- trunk/KDE/kdebase/runtime/plasma/scriptengines/javascript/common/scriptenv.cpp #1182726:1182727
@@ -579,11 +579,11 @@
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);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic