mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
commit
57b5a7c843
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user