Skip to content
Permalink
Browse files

QgsRelation::isValid will return false if layers are deleted

  • Loading branch information
m-kuhn committed Aug 24, 2018
1 parent 86e1382 commit 932e70a756311e4d02cf5c54c12d2ccade33bcd6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsrelation.cpp
@@ -326,7 +326,7 @@ QgsAttributeList QgsRelation::referencingFields() const

bool QgsRelation::isValid() const
{
return d->mValid;
return d->mValid && d->mReferencingLayer && d->mReferencedLayer;
}

bool QgsRelation::hasEqualDefinition( const QgsRelation &other ) const

0 comments on commit 932e70a

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