Skip to content
Permalink
Browse files

Merge pull request #5593 from nyalldawson/batch_rows

[processing] Change min rows in batch processing to 1
  • Loading branch information
alexbruy committed Nov 10, 2017
2 parents 9b85e5b + bd9945f commit 30cefca19ee5f5e1b82dba8d42e60327ac6e2e84
Showing with 3 additions and 4 deletions.
  1. +3 −4 python/plugins/processing/gui/BatchPanel.py
@@ -134,9 +134,8 @@ def initWidgets(self):
self.tblParameters.setHorizontalHeaderItem(
column, QTableWidgetItem(self.tr('Load in QGIS')))

# Add two empty rows by default
for i in range(2):
self.addRow()
# Add an empty row to begin
self.addRow()

self.tblParameters.horizontalHeader().resizeSections(QHeaderView.ResizeToContents)
self.tblParameters.verticalHeader().setSectionResizeMode(QHeaderView.ResizeToContents)
@@ -279,7 +278,7 @@ def addRow(self):
wrapper.postInitialize(list(wrappers.values()))

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

0 comments on commit 30cefca

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