summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-04 03:54:23 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-04 05:21:56 (GMT)
commit0559b8d2af9f1f9277ff3bedd9a33cca7e255abb (patch)
tree2fc17106c903602c457913de004775090c20d740 /src/declarative/qml
parent86828e75afcf5c6dae002826564965741bd1710f (diff)
downloadQt-0559b8d2af9f1f9277ff3bedd9a33cca7e255abb.zip
Qt-0559b8d2af9f1f9277ff3bedd9a33cca7e255abb.tar.gz
Qt-0559b8d2af9f1f9277ff3bedd9a33cca7e255abb.tar.bz2
Signal handler requires exactly one value.
Don't crash on invalid "PropertyAnimation on onClicked"
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/qdeclarativecompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativecompiler.cpp b/src/declarative/qml/qdeclarativecompiler.cpp
index b07a85a..7a3dde9 100644
--- a/src/declarative/qml/qdeclarativecompiler.cpp
+++ b/src/declarative/qml/qdeclarativecompiler.cpp
@@ -1342,7 +1342,7 @@ bool QDeclarativeCompiler::buildSignal(QDeclarativeParser::Property *prop, QDecl
} else {
- if (prop->value || prop->values.count() > 1)
+ if (prop->value || prop->values.count() != 1)
COMPILE_EXCEPTION(prop, QCoreApplication::translate("QDeclarativeCompiler","Incorrectly specified signal"));
prop->index = sigIdx;