Skip to content
Permalink
Browse files

Merge branch 'processing_modeler_default_value'

  • Loading branch information
rldhont committed Apr 28, 2016
2 parents 93d984e + 4a11a1a commit 37d6c69c24486290f34aafcb5363e28b5c9d8b73
@@ -389,7 +389,7 @@ def prepareAlgorithm(self, alg):
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
@@ -454,7 +454,7 @@ def setPreviousValues(self):
if param.name in alg.params:
value = alg.params[param.name]
else:
value = None
value = param.default
if isinstance(param, (
ParameterRaster,
ParameterVector,

0 comments on commit 37d6c69

Please sign in to comment.
You can’t perform that action at this time.