diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-03-04 03:54:23 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-03-04 05:21:56 (GMT) |
commit | 0559b8d2af9f1f9277ff3bedd9a33cca7e255abb (patch) | |
tree | 2fc17106c903602c457913de004775090c20d740 /src/declarative/qml | |
parent | 86828e75afcf5c6dae002826564965741bd1710f (diff) | |
download | Qt-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.cpp | 2 |
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; |