Bug report #17471

Processing: in GRASS/QGIS 3 inputs parameters (even optional) are always filled

Added by Giovanni Manghi over 6 years ago. Updated over 6 years ago.

Assignee:Victor Olaya
Affected QGIS version:master Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:25368


steps to replicate (is just an example):

  • load a dem layer
  • open the r.watershed tool, no input is filled, not the mandatory nor the optional > correct
  • run the tool, it will create a number of outputs, close the tool
  • re-open the tool, now all the inputs fields, mandatory and optional are already filled with one of the layers in the project > not cool, especially for the optional ones. But to keep consistency (also with 2.18) no input should be filed.

Associated revisions

Revision 8303b946
Added by Nyall Dawson over 6 years ago

[processing] Fix optional layer parameters are filled by default

Refs #17471

Not a full fix for 17471 - that requires handling of optional
numeric values too

Revision 1c1de3a8
Added by Nyall Dawson over 6 years ago

[processing] Fix optional numeric parameters cannot be cleared

Without this change optional numeric parameters have no way to
be cleared in the GUI - they are always forced to have a value

Fixes #17471 - but I've noticed that many optional numeric
GRASS parameters have a non-null default value. These may
need to be investigated and manually changed to None defaults
in the description files.


#1 Updated by Nyall Dawson over 6 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

#2 Updated by Giovanni Manghi over 6 years ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF