Skip to content

Commit

Permalink
Make use of the new skip referencing setting
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Oct 30, 2024
1 parent 88592b1 commit 5762249
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/processing/qgsprocessingwidgetwrapperimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4430,6 +4430,7 @@ QgsProcessingGeometryParameterDefinitionWidget::QgsProcessingGeometryParameterDe
vlayout->addWidget( new QLabel( tr( "Default value" ) ) );

mGeometryWidget = new QgsGeometryWidget();
mGeometryWidget->setSkipReferencing( true );
if ( const QgsProcessingParameterGeometry *geometryParam = dynamic_cast<const QgsProcessingParameterGeometry *>( definition ) )
{
QgsGeometry g = QgsProcessingParameters::parameterAsGeometry( geometryParam, geometryParam->defaultValueForGui(), context );
Expand Down Expand Up @@ -4466,6 +4467,7 @@ QWidget *QgsProcessingGeometryWidgetWrapper::createWidget()
case QgsProcessingGui::Batch:
{
mGeometryWidget = new QgsGeometryWidget();
mGeometryWidget->setSkipReferencing( true );
mGeometryWidget->setToolTip( parameterDefinition()->toolTip() );
connect( mGeometryWidget, &QgsGeometryWidget::geometryValueChanged, this, [ = ]( const QgsReferencedGeometry & )
{
Expand Down

0 comments on commit 5762249

Please sign in to comment.