Skip to content

Commit

Permalink
Add missing changed signal emissions
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 5, 2020
1 parent 5c44441 commit d8eb0ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/modeler/ModelerGraphicItem.py
Expand Up @@ -87,6 +87,7 @@ def editComponent(self):
self.model().addModelParameter(new_param, self.component())
self.setLabel(new_param.description())
self.requestModelRepaint.emit()
self.changed.emit()


class ModelerChildAlgorithmGraphicItem(QgsModelChildAlgorithmGraphicItem):
Expand All @@ -109,6 +110,7 @@ def editComponent(self):
alg.setChildId(self.component().childId())
self.updateAlgorithm(alg)
self.requestModelRepaint.emit()
self.changed.emit()

def updateAlgorithm(self, alg):
existing_child = self.model().childAlgorithm(alg.childId())
Expand Down Expand Up @@ -145,3 +147,4 @@ def editComponent(self):
model_output.setDefaultValue(dlg.param.defaultValue())
model_output.setMandatory(not (dlg.param.flags() & QgsProcessingParameterDefinition.FlagOptional))
self.model().updateDestinationParameters()
self.changed.emit()

0 comments on commit d8eb0ef

Please sign in to comment.