Skip to content
Permalink
Browse files

Merge pull request #42313 from domi4484/removeQgsRelationMisleadingDe…

…bugOutput

Avoid misleading debug output "Invalid relation: no ID"
  • Loading branch information
m-kuhn committed Mar 18, 2021
2 parents e75b6df + 7a59315 commit 0c75aa3e76be7c5f39b805de1d3821d6394dedbf
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgspolymorphicrelation.cpp
@@ -389,10 +389,10 @@ QList<QgsRelation> QgsPolymorphicRelation::generateRelations() const
QgsRelation relation;
QString referencedLayerName = d->mReferencedLayersMap[referencedLayerId]->name();

relation.setId( QStringLiteral( "%1_%2" ).arg( d->mRelationId, referencedLayerName ) );
relation.setReferencedLayer( referencedLayerId );
relation.setReferencingLayer( d->mReferencingLayerId );
relation.setName( QStringLiteral( "Generated for \"%1\"" ).arg( referencedLayerName ) );
relation.setId( QStringLiteral( "%1_%2" ).arg( d->mRelationId, referencedLayerName ) );
relation.setPolymorphicRelationId( d->mRelationId );
relation.setStrength( d->mRelationStrength );

0 comments on commit 0c75aa3

Please sign in to comment.