Fixing expression being set even if errors are found.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7e427e5bb9
commit
356169c749
1 changed files with 3 additions and 2 deletions
|
@ -476,11 +476,12 @@ Item {
|
|||
if(expr.requiredObjects().includes(control.self))
|
||||
throw new Error(qsTranslate('error', 'Object cannot be dependent on itself.'))
|
||||
// TODO: Check for recursive dependencies.
|
||||
return expr
|
||||
} catch(e) {
|
||||
// Error in expression
|
||||
parsingErrorDialog.showDialog(propertyName, newExpression, e.message)
|
||||
return null
|
||||
}
|
||||
return expr
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Reference in a new issue