Skip to content
Permalink
Browse files
Revert "[polymorphic relation] set the layer of the expression widget"
  • Loading branch information
3nids authored and github-actions committed Nov 4, 2021
1 parent 3a97d92 commit 02b95c3ffc92bca4963ad83dd76dc7abcca2aeca
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 02b95c3

Please sign in to comment.