mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
[processing] Fix exception when parameters are missing in batch dialog
Refs #18236
This commit is contained in:
parent
4b221759e3
commit
6e44a27764
@ -193,7 +193,7 @@ class BatchPanel(BASE, WIDGET):
|
||||
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
|
||||
@ -208,7 +208,7 @@ class BatchPanel(BASE, WIDGET):
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user