1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

drive-by-enhancement: assert on existance of qml fields in debug mode, helps debugging qml

This commit is contained in:
Corvus Corax 2014-02-16 12:18:41 +01:00
parent 09802ef3d0
commit 4fa62d71f8

View File

@ -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);