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
|
@ -475,12 +475,13 @@ Item {
|
||||||
}
|
}
|
||||||
if(expr.requiredObjects().includes(control.self))
|
if(expr.requiredObjects().includes(control.self))
|
||||||
throw new Error(qsTranslate('error', 'Object cannot be dependent on itself.'))
|
throw new Error(qsTranslate('error', 'Object cannot be dependent on itself.'))
|
||||||
// TODO: Check for recursive dependencies.
|
// TODO: Check for recursive dependencies.
|
||||||
|
return expr
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
// Error in expression
|
// Error in expression
|
||||||
parsingErrorDialog.showDialog(propertyName, newExpression, e.message)
|
parsingErrorDialog.showDialog(propertyName, newExpression, e.message)
|
||||||
|
return null
|
||||||
}
|
}
|
||||||
return expr
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
Loading…
Reference in a new issue