mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
drive-by-enhancement: assert on existance of qml fields in debug mode, helps debugging qml
This commit is contained in:
parent
09802ef3d0
commit
4fa62d71f8
@ -138,6 +138,7 @@ void ConfigTaskWidget::doAddWidgetBinding(QString objectName, QString fieldName,
|
||||
|
||||
if (!fieldName.isEmpty() && object) {
|
||||
field = object->getField(QString(fieldName));
|
||||
Q_ASSERT(field);
|
||||
}
|
||||
|
||||
WidgetBinding *binding = new WidgetBinding(widget, object, field, index, scale, isLimited);
|
||||
|
Loading…
x
Reference in New Issue
Block a user