Fixing expression being set even if errors are found.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ad5001 2022-10-20 17:39:36 +02:00
parent 7e427e5bb9
commit 356169c749
Signed by: Ad5001
GPG key ID: 7251B1AF90B960F9

View file

@ -475,12 +475,13 @@ Item {
}
if(expr.requiredObjects().includes(control.self))
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) {
// Error in expression
parsingErrorDialog.showDialog(propertyName, newExpression, e.message)
return null
}
return expr
}
/*!