summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeobjectscriptclass.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-04-09 06:20:38 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-04-09 06:21:14 (GMT)
commit44efb487bbd2a9e4de416d566839cdffff1d69e2 (patch)
tree7ef734b74c1888b515f1c54b6297badf81af6f4e /src/declarative/qml/qdeclarativeobjectscriptclass.cpp
parentc7ff857e0e93ca7dd555daf59e7508ee244bd876 (diff)
downloadQt-44efb487bbd2a9e4de416d566839cdffff1d69e2.zip
Qt-44efb487bbd2a9e4de416d566839cdffff1d69e2.tar.gz
Qt-44efb487bbd2a9e4de416d566839cdffff1d69e2.tar.bz2
List properties aren't read-only
Diffstat (limited to 'src/declarative/qml/qdeclarativeobjectscriptclass.cpp')
-rw-r--r--src/declarative/qml/qdeclarativeobjectscriptclass.cpp3
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);