Skip to content
Browse files
[processing] Allow models to have no group name set
This is supported by the toolbox now, so relax the requirement
that all models have a compulsory group name. If no group is set,
the model is shown directly under the Models node in the toolbox.

Also switch a warning from message box to message bar
  • Loading branch information
nyalldawson committed Jul 17, 2018
1 parent 325f2a4 commit d43f1a2823b0f73bc10d0352dae487d3f34feeca
Showing with 3 additions and 4 deletions.
  1. +3 −4 python/plugins/processing/modeler/
@@ -621,10 +621,9 @@ def exportAsPython(self):"","Model was correctly exported as python script"), level=Qgis.Success, duration=5)

def saveModel(self, saveAs):
if str(self.textGroup.text()).strip() == '' \
or str(self.textName.text()).strip() == '':
self,'Warning'),'Please enter group and model names before saving')
if str(self.textName.text()).strip() == '':
"",'Please a enter model name before saving')

0 comments on commit d43f1a2

Please sign in to comment.