mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Merge branch 'processing_modeler_default_value'
This commit is contained in:
commit
37d6c69c24
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user