Skip to content
Permalink
Browse files

Don't save defaults

  • Loading branch information
roya0045 authored and nyalldawson committed Jan 5, 2021
1 parent ee0e351 commit b3794cef32b0294add84e9db6134f64cc09a74dc
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/processing/gui/ParametersPanel.py
@@ -221,7 +221,8 @@ def createProcessingParameters(self):
continue

value = wrapper.parameterValue()
parameters[param.name()] = value
if param.defaultValue() != value:
parameters[param.name()] = value

if not param.checkValueIsAcceptable(value):
raise AlgorithmDialogBase.InvalidParameterValue(param, widget)
@@ -244,7 +245,7 @@ def createProcessingParameters(self):

if value and isinstance(value, QgsProcessingOutputLayerDefinition):
value.destinationProject = dest_project
if value:
if value and param.defaultValue() != value:
parameters[param.name()] = value

context = createContext()

0 comments on commit b3794ce

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