mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04: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)
|
self.tblParameters.setColumnWidth(col, width)
|
||||||
else:
|
else:
|
||||||
item = QLineEdit()
|
item = QLineEdit()
|
||||||
try:
|
if param.default is not None:
|
||||||
item.setText(unicode(param.default))
|
try:
|
||||||
except:
|
item.setText(unicode(param.default))
|
||||||
pass
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
return item
|
return item
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user