Skip to content
Browse files
Get mFeature before updating attributeform
The issue was, that the attributeform didn't got updated in case there was the first entry in the combobox selected.
If there was not the first combobox entry selected, there has been a setindex after the initialization and the attributeform got updated.
But the first entry needs this call.

Fix #19342
  • Loading branch information
signedav committed Jul 10, 2018
1 parent ebea35d commit 4c2e5ff4f582aae8a533d962e3c18c034420d8ac
Showing 1 changed file with 1 addition and 0 deletions.
@@ -555,6 +555,7 @@ void QgsRelationReferenceWidget::init()

// Only connect after iterating, to have only one iterator on the referenced table at once
connect( mComboBox, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this, &QgsRelationReferenceWidget::comboReferenceChanged );
mReferencedLayer->getFeatures( mComboBox->currentFeatureRequest() ).nextFeature( mFeature );
updateAttributeEditorFrame( mFeature );

0 comments on commit 4c2e5ff

Please sign in to comment.