Skip to content

Commit

Permalink
Use the QgsRelationContext's project instead of direct call to QgsPro…
Browse files Browse the repository at this point in the history
…ject
  • Loading branch information
suricactus committed Jan 12, 2021
1 parent ca874db commit 81600fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsrelation.cpp
Expand Up @@ -206,7 +206,7 @@ QString QgsRelation::getRelatedFeaturesFilter( const QgsFeature &feature ) const

if ( ! d->mPolymorphicRelationId.isEmpty() )
{
QgsPolymorphicRelation polymorphicRelation = QgsProject::instance()->relationManager()->polymorphicRelation( d->mPolymorphicRelationId );
QgsPolymorphicRelation polymorphicRelation = mContext.project()->relationManager()->polymorphicRelation( d->mPolymorphicRelationId );

if ( polymorphicRelation.isValid() )
{
Expand Down

0 comments on commit 81600fd

Please sign in to comment.