Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] Fix errors when filling parameters in batch panel
Fixes #18408
  • Loading branch information
nyalldawson committed Jun 1, 2018
1 parent dcba919 commit 950d042
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/gui/wrappers.py
Expand Up @@ -688,7 +688,7 @@ def setValue(self, value):
if self.dialogType == DIALOG_STANDARD:
pass # TODO
elif self.dialogType == DIALOG_BATCH:
return self.widget.setText(value)
return self.widget.setValue(value)
else:
options = self._getOptions()

Expand Down Expand Up @@ -916,7 +916,7 @@ def setValue(self, value):
self.combo.setAdditionalItems(items)
self.combo.setCurrentIndex(self.combo.findText(value))
elif self.dialogType == DIALOG_BATCH:
self.widget.setText(value)
self.widget.setValue(value)
else:
self.setComboValue(value, combobox=self.combo)
self.widgetValueHasChanged.emit(self)
Expand Down Expand Up @@ -1456,7 +1456,7 @@ def setValue(self, value):
self.combo.setAdditionalItems(items)
self.combo.setCurrentIndex(self.combo.findText(value))
elif self.dialogType == DIALOG_BATCH:
return self.widget.setText(value)
return self.widget.setValue(value)
else:
self.setComboValue(value, combobox=self.combo)
self.widgetValueHasChanged.emit(self)
Expand Down

0 comments on commit 950d042

Please sign in to comment.