Skip to content

Commit 30cefca

Browse files
authoredNov 10, 2017
Merge pull request #5593 from nyalldawson/batch_rows
[processing] Change min rows in batch processing to 1
2 parents 9b85e5b + bd9945f commit 30cefca

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎python/plugins/processing/gui/BatchPanel.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,8 @@ def initWidgets(self):
134134
self.tblParameters.setHorizontalHeaderItem(
135135
column, QTableWidgetItem(self.tr('Load in QGIS')))
136136

137-
# Add two empty rows by default
138-
for i in range(2):
139-
self.addRow()
137+
# Add an empty row to begin
138+
self.addRow()
140139

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

281280
def removeRows(self):
282-
if self.tblParameters.rowCount() > 2:
281+
if self.tblParameters.rowCount() > 1:
283282
self.wrappers.pop()
284283
self.tblParameters.setRowCount(self.tblParameters.rowCount() - 1)
285284

0 commit comments

Comments
 (0)
Please sign in to comment.