Browse Source

Prevent incorrect param binding while switching component id

QGC4.4
Don Gagne 9 years ago
parent
commit
b16652fde7
  1. 5
      src/QmlControls/ParameterEditor.qml

5
src/QmlControls/ParameterEditor.qml

@ -200,11 +200,12 @@ QGCView { @@ -200,11 +200,12 @@ QGCView {
exclusiveGroup: setupButtonGroup
onClicked: {
checked = true
factRowsLoader.sourceComponent = null
// Clear the rows from the component first. This allows us to change the componentId without
// breaking any bindings.
factRowsLoader.parameterNames = [ ]
_rowWidth = 10
factRowsLoader.componentId = componentId
factRowsLoader.parameterNames = controller.getParametersForGroup(componentId, modelData)
factRowsLoader.sourceComponent = factRowsComponent
_currentGroup = modelData
}
}

Loading…
Cancel
Save