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

(cherry-picked from 4c2e5ff)
  • Loading branch information
signedav committed Jul 12, 2018
1 parent 0e0a01a commit 815b803487892169096d947bdc0eaaf8960108e5
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 815b803

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