[processing] Set value of unused optional layer parameters to None instead of empty string

This commit is contained in:
volaya 2017-12-13 14:36:47 +01:00
parent 1648c79dc2
commit ea49c8276c

View File

@ -795,7 +795,7 @@ class MapLayerWidgetWrapper(WidgetWrapper):
if layer is not None:
return layer
else:
return self.combo.currentText()
return self.combo.currentText() or None
except:
return self.combo.currentText()
elif self.dialogType == DIALOG_BATCH: