Skip to content
Permalink
Browse files

Do not automatically load referencing layers

  • Loading branch information
elpaso committed Dec 8, 2019
1 parent 5784e87 commit e8c6838384396b815b053b464ab9c539a8df4d1f
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/app/qgisapp.cpp
@@ -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 )
{

0 comments on commit e8c6838

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