Skip to content
Permalink
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 with 1 addition and 0 deletions.
  1. +1 −0 src/gui/editorwidgets/qgsrelationreferencewidget.cpp
@@ -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 );
QApplication::restoreOverrideCursor();
}

0 comments on commit 4c2e5ff

Please sign in to comment.
You can’t perform that action at this time.