Skip to content

Commit bd3d1c4

Browse files
committedJul 11, 2016
Fix on map identification on relation reference widget with complex PK
References #14882
1 parent 781d0c3 commit bd3d1c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/editorwidgets/qgsrelationreferencewidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ void QgsRelationReferenceWidget::featureIdentified( const QgsFeature& feature )
707707
}
708708
else
709709
{
710-
mComboBox->setCurrentIndex( mComboBox->findData( feature.attribute( mReferencedFieldIdx ), QgsAttributeTableModel::FeatureIdRole ) );
710+
mComboBox->setCurrentIndex( mComboBox->findData( feature.id(), QgsAttributeTableModel::FeatureIdRole ) );
711711
mFeature = feature;
712712
}
713713

0 commit comments

Comments
 (0)
Please sign in to comment.