Skip to content
Permalink
Browse files
Revert "[polymorphic relation] set the layer of the expression widget" (
#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 563ebfd7dd4efd7d3a73f9b267bee15981a27da3
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/app/qgsrelationaddpolymorphicdialog.cpp
@@ -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() ) );

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

void QgsRelationAddPolymorphicDialog::referencedLayersChanged()

0 comments on commit 563ebfd

Please sign in to comment.