Skip to content
Permalink
Browse files

Use count function

  • Loading branch information
NathanW2 committed Jan 3, 2014
1 parent 44d9682 commit 797bd3233d378a8bf4fa8893f04e5e42761ae70e
Showing with 2 additions and 8 deletions.
  1. +2 −8 python/plugins/processing/gui/ParametersPanel.py
@@ -336,14 +336,8 @@ def somethingDependsOnThisParameter(self, parent):
def setTableContent(self):
params = self.alg.parameters
outputs = self.alg.outputs
numParams = 0
for param in params:
if not param.hidden:
numParams += 1
numOutputs = 0
for output in outputs:
if not output.hidden:
numOutputs += 1
numParams = count(p for p in params if not p.hidden)
numParams = count(o for o in outputs if not o.hidden)
self.tableWidget.setRowCount(numParams + numOutputs)

i = 0

0 comments on commit 797bd32

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