Merge branch 'processing_modeler_default_value'

This commit is contained in:
rldhont 2016-04-28 10:43:39 +02:00
commit 37d6c69c24
2 changed files with 2 additions and 2 deletions

View File

@ -389,7 +389,7 @@ class ModelerAlgorithm(GeoAlgorithm):
iface.messageBar().pushMessage(self.tr("Warning"),
self.tr("Parameter %s in algorithm %s in the model is run with default value! Edit the model to make sure that this is correct.") % (param.name, alg.name),
QgsMessageBar.WARNING, 4)
value = None
value = param.default
if value is None and isinstance(param, ParameterExtent):
value = self.getMinCoveringExtent()
# We allow unexistent filepaths, since that allows

View File

@ -454,7 +454,7 @@ class ModelerParametersDialog(QDialog):
if param.name in alg.params:
value = alg.params[param.name]
else:
value = None
value = param.default
if isinstance(param, (
ParameterRaster,
ParameterVector,