aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcompiler.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-01-31 15:42:20 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-03 14:38:12 +0100
commit5d8a642f210e9b5a6187573ee75db6ca6c68c103 (patch)
treea5e4d3d158f291920942ce9d85b4bbb5da1e748d /src/qml/qml/qqmlcompiler.cpp
parentd60251910eb3700f0f45e2fadf61dd457b094412 (diff)
[new compiler] Fix error message when assigning lists to singular properties
Also adjust the error message for the other compiler when trying to assign lists to script strings. Change-Id: I50f833c340f3634a59c5b36f30aeafc53003e65e Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcompiler.cpp')
-rw-r--r--src/qml/qml/qqmlcompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcompiler.cpp b/src/qml/qml/qqmlcompiler.cpp
index 821ac4602d..9262e2a119 100644
--- a/src/qml/qml/qqmlcompiler.cpp
+++ b/src/qml/qml/qqmlcompiler.cpp
@@ -2377,7 +2377,7 @@ bool QQmlCompiler::buildScriptStringProperty(QQmlScript::Property *prop,
const BindingContext &ctxt)
{
if (prop->values.isMany())
- COMPILE_EXCEPTION(prop->values.first()->nextValue, tr( "Cannot assign multiple values to a script property"));
+ COMPILE_EXCEPTION(prop->values.first(), tr( "Cannot assign multiple values to a script property"));
if (prop->values.first()->object)
COMPILE_EXCEPTION(prop->values.first(), tr( "Invalid property assignment: script expected"));