Skip to content

Commit

Permalink
Revert "[polymorphic relation] set the layer of the expression widget" (
Browse files Browse the repository at this point in the history
#45857)

Co-authored-by: Denis Rouzaud <denis.rouzaud@gmail.com>
  • Loading branch information
qgis-bot and 3nids committed Nov 4, 2021
1 parent c7a118a commit 563ebfd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/app/qgsrelationaddpolymorphicdialog.cpp
Expand Up @@ -87,7 +87,6 @@ void QgsRelationAddPolymorphicDialog::setPolymorphicRelation( const QgsPolymorph
mReferencingLayerComboBox->setLayer( polyRel.referencingLayer() );
mReferencedLayerFieldComboBox->setLayer( polyRel.referencingLayer() );
mReferencedLayerFieldComboBox->setField( polyRel.referencedLayerField() );
mReferencedLayerExpressionWidget->setLayer( polyRel.referencingLayer() );
mReferencedLayerExpressionWidget->setExpression( polyRel.referencedLayerExpression() );
mRelationStrengthComboBox->setCurrentIndex( mRelationStrengthComboBox->findData( polyRel.strength() ) );

Expand Down Expand Up @@ -281,7 +280,6 @@ void QgsRelationAddPolymorphicDialog::updateReferencingFieldsComboBoxes()
void QgsRelationAddPolymorphicDialog::updateReferencedLayerFieldComboBox()
{
mReferencedLayerFieldComboBox->setLayer( mReferencingLayerComboBox->currentLayer() );
mReferencedLayerExpressionWidget->setLayer( mReferencingLayerComboBox->currentLayer() );
}

void QgsRelationAddPolymorphicDialog::referencedLayersChanged()
Expand Down

0 comments on commit 563ebfd

Please sign in to comment.