summaryrefslogtreecommitdiffstats
path: root/src/script/bridge
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-08-06 12:37:27 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-08-06 12:37:27 (GMT)
commit551db2696bbeb32a36c8b8eb4ec5fea88b7d27f7 (patch)
treec89c05c905b5e978cac29d3cdede07841b3e3ccd /src/script/bridge
parent9923c171853b2f8b4a3a6b096d263fa6cf461a0b (diff)
downloadQt-551db2696bbeb32a36c8b8eb4ec5fea88b7d27f7.zip
Qt-551db2696bbeb32a36c8b8eb4ec5fea88b7d27f7.tar.gz
Qt-551db2696bbeb32a36c8b8eb4ec5fea88b7d27f7.tar.bz2
fix regression in enumeration of QProperties
Diffstat (limited to 'src/script/bridge')
-rw-r--r--src/script/bridge/qscriptqobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/bridge/qscriptqobject.cpp b/src/script/bridge/qscriptqobject.cpp
index e876cc9..83a2d0f 100644
--- a/src/script/bridge/qscriptqobject.cpp
+++ b/src/script/bridge/qscriptqobject.cpp
@@ -1528,7 +1528,7 @@ void QObjectDelegate::getPropertyNames(QScriptObject *object, JSC::ExecState *ex
? meta->propertyOffset() : 0;
for ( ; i < meta->propertyCount(); ++i) {
QMetaProperty prop = meta->property(i);
- if ((listedAttributes & JSC::Structure::NonEnumerable) || isEnumerableMetaProperty(prop, meta, i)) {
+ if (isEnumerableMetaProperty(prop, meta, i)) {
QString name = QString::fromLatin1(prop.name());
propertyNames.add(JSC::Identifier(exec, qtStringToJSCUString(name)));
}