[processing] Fix in-place mode results in unknown distance units

We need to still create the parameter wrappers when in in-place mode
for the input/output parameters, as some other wrappers may rely
on these for various interactions (e.g. getting the crs/fields
from the input layer)

Fixes #19990
This commit is contained in:
Nyall Dawson 2018-10-02 14:15:47 +10:00
parent 5e1348bbdc
commit 57f77d01cb

View File

@ -134,9 +134,6 @@ class ParametersPanel(BASE, WIDGET):
if param.flags() & QgsProcessingParameterDefinition.FlagHidden:
continue
if self.in_place and param.name() in ('INPUT', 'OUTPUT'):
continue
if param.isDestination():
continue
else:
@ -155,6 +152,13 @@ class ParametersPanel(BASE, WIDGET):
else:
widget = wrapper.widget
if self.in_place and param.name() in ('INPUT', 'OUTPUT'):
# don't show the input/output parameter widgets in in-place mode
# we still need to CREATE them, because other wrappers may need to interact
# with them (e.g. those parameters which need the input layer for field
# selections/crs properties/etc)
continue
if widget is not None:
if is_python_wrapper:
widget.setToolTip(param.toolTip())