Skip to content

Commit

Permalink
[processing] Fix exception when parameters are missing in batch dialog
Browse files Browse the repository at this point in the history
Refs #18236
  • Loading branch information
nyalldawson committed Feb 27, 2018
1 parent 4b22175 commit 6e44a27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/gui/BatchPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def save(self):
continue
wrapper = self.wrappers[row][col]
if not param.checkValueIsAcceptable(wrapper.value(), context):
self.parent.bar.pushMessage("", self.tr('Wrong or missing parameter value: {0} (row {1})').format(
self.parent.messageBar().pushMessage("", self.tr('Wrong or missing parameter value: {0} (row {1})').format(
param.description(), row + 1),
level=Qgis.Warning, duration=5)
return
Expand All @@ -208,7 +208,7 @@ def save(self):
algOutputs[out.name()] = text.strip()
col += 1
else:
self.parent.bar.pushMessage("", self.tr('Wrong or missing output value: {0} (row {1})').format(
self.parent.messageBar().pushMessage("", self.tr('Wrong or missing output value: {0} (row {1})').format(
out.description(), row + 1),
level=Qgis.Warning, duration=5)
return
Expand Down

0 comments on commit 6e44a27

Please sign in to comment.