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

Please sign in to comment.