Skip to content

Commit

Permalink
[processing] use parameter description instead of name when retrieving
Browse files Browse the repository at this point in the history
parameter from the registry
  • Loading branch information
alexbruy committed Apr 17, 2018
1 parent 11435ce commit 90c6540
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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'))
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 90c6540

Please sign in to comment.