Skip to content
Permalink
Browse files
Revert "[polymorphic relation] set the layer of the expression widget"
  • Loading branch information
3nids committed Nov 3, 2021
1 parent dc3e9eb commit 529daeee8a0e6d322cb766861bb2455bcc17770a
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 529daee

Please sign in to comment.