Skip to content
Permalink
Browse files
remove model validity condition
  • Loading branch information
Koyaani authored and nyalldawson committed Nov 2, 2021
1 parent 874f890 commit d2425f51b8a85a74b7731d2f688249c73f873f33
Showing with 3 additions and 7 deletions.
  1. +3 −7 python/plugins/processing/modeler/EditModelAction.py
@@ -40,13 +40,9 @@ def isEnabled(self):

def execute(self):
alg = self.itemData
ok, msg = alg.canExecute()
if not ok:
iface.messageBar().pushMessage(QCoreApplication.translate('EditModelAction', 'Cannot edit model: {}').format(msg), level=Qgis.Warning)
else:
dlg = ModelerDialog.create(alg)
dlg.update_model.connect(self.updateModel)
dlg.show()
dlg = ModelerDialog.create(alg)
dlg.update_model.connect(self.updateModel)
dlg.show()

def updateModel(self):
QgsApplication.processingRegistry().providerById('model').refreshAlgorithms()

0 comments on commit d2425f5

Please sign in to comment.