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 Jul 11, 2016
1 parent 781d0c3 commit bd3d1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsrelationreferencewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,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 bd3d1c4

Please sign in to comment.