Skip to content

Commit

Permalink
[processing] Fix exception when running batch alg after loading param…
Browse files Browse the repository at this point in the history
…eters
  • Loading branch information
nyalldawson committed May 8, 2019
1 parent b260147 commit af6d3d7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/plugins/processing/gui/BatchPanel.py
Expand Up @@ -367,6 +367,12 @@ def batchRowCount(self):
"""
return len(self.wrappers)

def clear(self):
self.tblParameters.setRowCount(1)
self.wrappers = []
self.column_to_parameter_definition = {}
self.parameter_to_column = {}

def load(self):
context = dataobjects.createContext()
settings = QgsSettings()
Expand All @@ -383,7 +389,7 @@ def load(self):
# If the user clicked on the cancel button.
return

self.tblParameters.setRowCount(1)
self.clear()
try:
for row, alg in enumerate(values):
self.addRow()
Expand Down

0 comments on commit af6d3d7

Please sign in to comment.