Skip to content
Permalink
Browse files

Do not try to load bad layer dependencies

References #39025
  • Loading branch information
m-kuhn committed Oct 13, 2020
1 parent a3d6965 commit 08769018ac415fbd6f7411d5baad6b75e6e66c1f
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 0876901

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