aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-02-02 20:36:39 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-03 14:38:25 +0100
commit5a280b9a2b472391e4cf853fb40042b892667c58 (patch)
tree8e8641a747ebabe3052a82553589d642bac02bf0 /src/qml/compiler
parentc46c35e8e5486fb98b287eeed7c4f58d0840d267 (diff)
[new compiler] Fix error reporting for invalid regexp property assignments
After recordError makes sure to return false to indicate the error condition to the caller. Change-Id: I7edcda9ea4c6898f1607824085b150dbe295aeb2 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler')
-rw-r--r--src/qml/compiler/qqmltypecompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qqmltypecompiler.cpp b/src/qml/compiler/qqmltypecompiler.cpp
index 99bd94ed38..09a1c30bd8 100644
--- a/src/qml/compiler/qqmltypecompiler.cpp
+++ b/src/qml/compiler/qqmltypecompiler.cpp
@@ -1715,7 +1715,7 @@ bool QQmlPropertyValidator::validateLiteralBinding(QQmlPropertyCache *propertyCa
break;
case QVariant::RegExp:
recordError(binding->valueLocation, tr("Invalid property assignment: regular expression expected; use /pattern/ syntax"));
- break;
+ return false;
default: {
// generate single literal value assignment to a list property if required
if (property->propType == qMetaTypeId<QList<qreal> >()) {