Skip to content
Permalink
Browse files

Fix value() method of relation reference widget

  • Loading branch information
m-kuhn committed Nov 9, 2017
1 parent 8abc892 commit b1ac56b5bcee58e81bb1af2b4d3df1e8097939da
Showing with 1 addition and 12 deletions.
  1. +1 −12 src/gui/editorwidgets/qgsrelationreferencewidget.cpp
@@ -357,18 +357,7 @@ QVariant QgsRelationReferenceWidget::foreignKey() const
}
else
{
if ( mReferencingFieldIdx < 0 || mReferencingFieldIdx >= mReferencingLayer->fields().count() )
{
return QVariant();
}
else if ( !mFeature.isValid() )
{
return QVariant( mReferencingLayer->fields().at( mReferencingFieldIdx ).type() );
}
else
{
return mFeature.attribute( mReferencedFieldIdx );
}
return mComboBox->identifierValue();
}
}

0 comments on commit b1ac56b

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