Skip to content
Permalink
Browse files

Merge pull request #39352 from m-kuhn/bad_layer_deps

Do not try to load bad layer dependencies
  • Loading branch information
elpaso committed Oct 16, 2020
2 parents 0f4270c + 0876901 commit b3066af3030ba35ab2134f7283ad6dfd24b0624d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgisapp.cpp
@@ -2284,8 +2284,8 @@ void QgisApp::resolveVectorLayerDependencies( QgsVectorLayer *vl, QgsMapLayer::S
const auto constDependencies { findBrokenLayerDependencies( vl, categories ) };
for ( const QgsVectorLayerRef &dependency : constDependencies )
{
// Temporary check for projects that were created before commit 7e8c7b3d0e094737336ff4834ea2af625d2921bf
if ( QgsProject::instance()->mapLayer( dependency.layerId ) )
// Check for projects without layer dependencies (see 7e8c7b3d0e094737336ff4834ea2af625d2921bf)
if ( QgsProject::instance()->mapLayer( dependency.layerId ) || ( dependency.name.isEmpty() && dependency.source.isEmpty() ) )
{
continue;
}

0 comments on commit b3066af

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