Skip to content
Permalink
Browse files
remove model validity condition
  • Loading branch information
Koyaani authored and github-actions committed Nov 2, 2021
1 parent 850ee56 commit 5a4ece4cf4cf70e375e51c65ceda086d4d24845b
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 5a4ece4

Please sign in to comment.