Skip to content
Permalink
Browse files

[processing] use parameter description instead of name when retrieving

parameter from the registry
  • Loading branch information
alexbruy committed Apr 17, 2018
1 parent 11435ce commit 90c65405fd0c077d6cd358af789dd65bfa1eb494
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/modeler/ModelerParameterDefinitionDialog.py
@@ -295,7 +295,7 @@ def setupUi(self):
self.setLayout(self.verticalLayout)

def accept(self):
description = str(self.nameTextBox.text())
description = self.nameTextBox.text()
if description.strip() == '':
QMessageBox.warning(self, self.tr('Unable to define parameter'),
self.tr('Invalid parameter name'))
@@ -410,7 +410,7 @@ def accept(self):
msg = self.tr('The parameter `{}` is not registered, are you missing a required plugin?'.format(typeId))
raise UndefinedParameterException(msg)
self.param = paramTypeDef.create(name)
self.param.setDescription(name)
self.param.setDescription(description)
self.param.setMetadata(paramTypeDef.metadata())

if not self.requiredCheck.isChecked():

0 comments on commit 90c6540

Please sign in to comment.
You can’t perform that action at this time.