Skip to content

Commit 932e70a

Browse files
committedAug 24, 2018
QgsRelation::isValid will return false if layers are deleted
1 parent 86e1382 commit 932e70a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsrelation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ QgsAttributeList QgsRelation::referencingFields() const
326326

327327
bool QgsRelation::isValid() const
328328
{
329-
return d->mValid;
329+
return d->mValid && d->mReferencingLayer && d->mReferencedLayer;
330330
}
331331

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

0 commit comments

Comments
 (0)
Please sign in to comment.