Skip to content

Commit

Permalink
Fix on map identification on relation reference widget with complex PK
Browse files Browse the repository at this point in the history
References #14882
  • Loading branch information
m-kuhn committed Jun 6, 2016
1 parent e80e541 commit f8dccf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsrelationreferencewidget.cpp
Expand Up @@ -749,7 +749,7 @@ void QgsRelationReferenceWidget::featureIdentified( const QgsFeature& feature )
}
else
{
mComboBox->setCurrentIndex( mComboBox->findData( feature.attribute( mReferencedFieldIdx ), QgsAttributeTableModel::FeatureIdRole ) );
mComboBox->setCurrentIndex( mComboBox->findData( feature.id(), QgsAttributeTableModel::FeatureIdRole ) );
mFeature = feature;
}

Expand Down

0 comments on commit f8dccf8

Please sign in to comment.