diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-09 06:20:38 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-09 06:21:14 (GMT) |
commit | 44efb487bbd2a9e4de416d566839cdffff1d69e2 (patch) | |
tree | 7ef734b74c1888b515f1c54b6297badf81af6f4e /src | |
parent | c7ff857e0e93ca7dd555daf59e7508ee244bd876 (diff) | |
download | Qt-44efb487bbd2a9e4de416d566839cdffff1d69e2.zip Qt-44efb487bbd2a9e4de416d566839cdffff1d69e2.tar.gz Qt-44efb487bbd2a9e4de416d566839cdffff1d69e2.tar.bz2 |
List properties aren't read-only
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/qml/qdeclarativeobjectscriptclass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeobjectscriptclass.cpp b/src/declarative/qml/qdeclarativeobjectscriptclass.cpp index 4601aaa..e89075f 100644 --- a/src/declarative/qml/qdeclarativeobjectscriptclass.cpp +++ b/src/declarative/qml/qdeclarativeobjectscriptclass.cpp @@ -323,7 +323,8 @@ void QDeclarativeObjectScriptClass::setProperty(QObject *obj, return; } - if (!(lastData->flags & QDeclarativePropertyCache::Data::IsWritable)) { + if (!(lastData->flags & QDeclarativePropertyCache::Data::IsWritable) && + !(lastData->flags & QDeclarativePropertyCache::Data::IsQList)) { QString error = QLatin1String("Cannot assign to read-only property \"") + toString(name) + QLatin1Char('\"'); context->throwError(error); |