Skip to content

Commit

Permalink
Do not automatically load referencing layers
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Dec 19, 2019
1 parent 5784e87 commit e8c6838
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -2046,11 +2046,18 @@ const QList<QgsVectorLayerRef> QgisApp::findBrokenLayerDependencies( QgsVectorLa
bool found = false;
if ( ! relation.isValid() )
{
// We need just the other side of the relation
// This is the big question: do we really
// want to automatically load the referencing layer(s) too?
// This could potentially lead to a cascaded load of a
// long list of layers.
// The code is in place but let's leave it disabled for now.
if ( relation.referencedLayer() == vl )
{
// Do nothing because vl is the referenced layer
#if 0
dependency = rel.referencingLayer();
found = true;
#endif
}
else if ( relation.referencingLayer() == vl )
{
Expand Down

0 comments on commit e8c6838

Please sign in to comment.