Skip to content

Commit af6d3d7

Browse files
committed
[processing] Fix exception when running batch alg after loading parameters
1 parent b260147 commit af6d3d7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

python/plugins/processing/gui/BatchPanel.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,12 @@ def batchRowCount(self):
367367
"""
368368
return len(self.wrappers)
369369

370+
def clear(self):
371+
self.tblParameters.setRowCount(1)
372+
self.wrappers = []
373+
self.column_to_parameter_definition = {}
374+
self.parameter_to_column = {}
375+
370376
def load(self):
371377
context = dataobjects.createContext()
372378
settings = QgsSettings()
@@ -383,7 +389,7 @@ def load(self):
383389
# If the user clicked on the cancel button.
384390
return
385391

386-
self.tblParameters.setRowCount(1)
392+
self.clear()
387393
try:
388394
for row, alg in enumerate(values):
389395
self.addRow()

0 commit comments

Comments
 (0)