Skip to content
Permalink
Browse files
remove model validity condition
  • Loading branch information
Koyaani authored and nyalldawson committed Nov 7, 2021
1 parent b71cb15 commit 197cf59667f59a3d33f8250d1becf630fc02a79b
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 197cf59

Please sign in to comment.