Skip to content
Permalink
Browse files

Call postInitialise in BatchAlgorithmDialog

  • Loading branch information
arnaud-morvan authored and volaya committed Oct 5, 2016
1 parent be5f951 commit c010a035c31360b6699217cd426dd98fdb8ea9ec
Showing with 5 additions and 0 deletions.
  1. +5 −0 python/plugins/processing/gui/BatchPanel.py
@@ -235,13 +235,15 @@ def addRow(self):
self.wrappers.append([None] * self.tblParameters.columnCount())
self.tblParameters.setRowCount(self.tblParameters.rowCount() + 1)

wrappers = {}
row = self.tblParameters.rowCount() - 1
column = 0
for param in self.alg.parameters:
if param.hidden:
continue

wrapper = param.wrapper(self.parent, row, column)
wrappers[param.name] = wrapper
self.setCellWrapper(row, column, wrapper)
column += 1

@@ -261,6 +263,9 @@ def addRow(self):
item.setCurrentIndex(0)
self.tblParameters.setCellWidget(row, column, item)

for wrapper in wrappers.values():
wrapper.postInitialize(wrappers.values())

def removeRows(self):
if self.tblParameters.rowCount() > 2:
self.wrappers.pop()

0 comments on commit c010a03

Please sign in to comment.
You can’t perform that action at this time.