Skip to content
Permalink
Browse files
[processing] Fix exception when running batch alg after loading param…
…eters
  • Loading branch information
nyalldawson committed May 8, 2019
1 parent b260147 commit af6d3d7
Showing 1 changed file with 7 additions and 1 deletion.
@@ -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()
@@ -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()

0 comments on commit af6d3d7

Please sign in to comment.