mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[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:
parent
5e1348bbdc
commit
57f77d01cb
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user