mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
QgsRelation::isValid will return false if layers are deleted
This commit is contained in:
parent
86e1382fb0
commit
932e70a756
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user