Skip to content

Commit

Permalink
[processing] allow only one row in batch interface
Browse files Browse the repository at this point in the history
fixes #15703
  • Loading branch information
volaya committed Oct 28, 2016
1 parent 520b94e commit 05e70b2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions python/plugins/processing/gui/BatchPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,13 +347,7 @@ def addRow(self):
self.tblParameters.setCellWidget(row, column, item)

def removeRows(self):
# ~ self.tblParameters.setUpdatesEnabled(False)
# ~ indexes = self.tblParameters.selectionModel().selectedIndexes()
# ~ indexes.sort()
# ~ for i in reversed(indexes):
# ~ self.tblParameters.model().removeRow(i.row())
# ~ self.tblParameters.setUpdatesEnabled(True)
if self.tblParameters.rowCount() > 2:
if self.tblParameters.rowCount() > 1:
self.tblParameters.setRowCount(self.tblParameters.rowCount() - 1)

def fillParameterValues(self, column):
Expand Down

0 comments on commit 05e70b2

Please sign in to comment.