diff options
-rw-r--r-- | src/plugins/qmldesigner/components/connectioneditor/connectioneditorevaluator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmldesigner/components/connectioneditor/connectioneditorevaluator.cpp b/src/plugins/qmldesigner/components/connectioneditor/connectioneditorevaluator.cpp index c7d3ae977a..5bb9639025 100644 --- a/src/plugins/qmldesigner/components/connectioneditor/connectioneditorevaluator.cpp +++ b/src/plugins/qmldesigner/components/connectioneditor/connectioneditorevaluator.cpp @@ -967,11 +967,11 @@ bool ConnectionEditorEvaluator::visit(QmlJS::AST::FieldMemberExpression *fieldEx bool ConnectionEditorEvaluator::visit(QmlJS::AST::CallExpression *callExpression) { if (d->isInIfCondition()) - d->checkValidityAndReturn(false, "Functions are not allowd in the expressions"); + return d->checkValidityAndReturn(false, "Functions are not allowd in the expressions"); MatchedStatement *currentStatement = d->currentStatement(); if (!currentStatement) - d->checkValidityAndReturn(false, "Invalid place to call an expression"); + return d->checkValidityAndReturn(false, "Invalid place to call an expression"); if (ConnectionEditorStatements::isEmptyStatement(*currentStatement)) { if (d->parentNodeStatus().childId() == 0) { |