Skip to content

Commit 05e70b2

Browse files
committedOct 28, 2016
[processing] allow only one row in batch interface
fixes #15703
1 parent 520b94e commit 05e70b2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed
 

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,7 @@ def addRow(self):
347347
self.tblParameters.setCellWidget(row, column, item)
348348

349349
def removeRows(self):
350-
# ~ self.tblParameters.setUpdatesEnabled(False)
351-
# ~ indexes = self.tblParameters.selectionModel().selectedIndexes()
352-
# ~ indexes.sort()
353-
# ~ for i in reversed(indexes):
354-
# ~ self.tblParameters.model().removeRow(i.row())
355-
# ~ self.tblParameters.setUpdatesEnabled(True)
356-
if self.tblParameters.rowCount() > 2:
350+
if self.tblParameters.rowCount() > 1:
357351
self.tblParameters.setRowCount(self.tblParameters.rowCount() - 1)
358352

359353
def fillParameterValues(self, column):

0 commit comments

Comments
 (0)
Please sign in to comment.