Merge pull request #3431 from arnaud-morvan/processing_batch_none

[processing] do not set "None" value in batch panel string widgets
This commit is contained in:
Alexander Bruy 2016-08-24 14:36:06 +03:00 committed by GitHub
commit 57b5a7c843

View File

@ -170,10 +170,11 @@ class BatchPanel(BASE, WIDGET):
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