Skip to content
Permalink
Browse files

Fix crash in relation reference widget

  • Loading branch information
m-kuhn committed Nov 19, 2015
1 parent 85f29ed commit 69eb65973045341f7076f801eda4e25324d4ce26
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/editorwidgets/qgsrelationreferencewidget.cpp
@@ -353,7 +353,7 @@ QVariant QgsRelationReferenceWidget::foreignKey()
{
if ( !mFeature.isValid() )
{
return QVariant( mReferencingLayer->fields().at( mFkeyFieldIdx ).type() );
return QVariant( mReferencingLayer->fields().at( mReferencingLayer->fieldNameIndex( mRelation.fieldPairs().at( 0 ).first ) ).type() );
}
else
{

0 comments on commit 69eb659

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