Skip to content
Permalink
Browse files

Add missing changed signal emissions

  • Loading branch information
nyalldawson committed Mar 3, 2020
1 parent 5c44441 commit d8eb0efc06c9ce45f0e7f06585e5ec4166a2f7ac
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/processing/modeler/ModelerGraphicItem.py
@@ -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):
@@ -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())
@@ -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.
You can’t perform that action at this time.