Skip to content

Commit

Permalink
Do not set "None" value in batch panel string widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-morvan committed Aug 23, 2016
1 parent eb308a6 commit f0413e3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions python/plugins/processing/gui/BatchPanel.py
Expand Up @@ -170,10 +170,11 @@ def getWidgetFromParameter(self, param, row, col):
self.tblParameters.setColumnWidth(col, width)
else:
item = QLineEdit()
try:
item.setText(unicode(param.default))
except:
pass
if param.default is not None:
try:
item.setText(unicode(param.default))
except:
pass

return item

Expand Down

0 comments on commit f0413e3

Please sign in to comment.