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 af6d3d773d9920c52a0a9a7d3eac7c6adcd0074c
Showing with 7 additions and 1 deletion.
  1. +7 −1 python/plugins/processing/gui/BatchPanel.py
@@ -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.
You can’t perform that action at this time.