Skip to content

Commit f0413e3

Browse files
committedAug 23, 2016
Do not set "None" value in batch panel string widgets
1 parent eb308a6 commit f0413e3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,11 @@ def getWidgetFromParameter(self, param, row, col):
170170
self.tblParameters.setColumnWidth(col, width)
171171
else:
172172
item = QLineEdit()
173-
try:
174-
item.setText(unicode(param.default))
175-
except:
176-
pass
173+
if param.default is not None:
174+
try:
175+
item.setText(unicode(param.default))
176+
except:
177+
pass
177178

178179
return item
179180

0 commit comments

Comments
 (0)
Please sign in to comment.