Skip to content

Commit

Permalink
Do not try to load bad layer dependencies
Browse files Browse the repository at this point in the history
References #39025
  • Loading branch information
m-kuhn committed Oct 13, 2020
1 parent a3d6965 commit 0876901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0876901

Please sign in to comment.