Skip to content
Permalink
Browse files

Fix freeze when auto-finding broken layers

Fix #37757
  • Loading branch information
elpaso committed Jul 11, 2020
1 parent 2e2acf9 commit 01c3b478067228a799f3eb511d0f9ce48210ae72
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgshandlebadlayers.cpp
@@ -589,7 +589,7 @@ void QgsHandleBadLayers::autoFind()

// Try first to change the datasource of the existing layers, this will
// maintain the current status (checked/unchecked) and group
if ( QgsProject::instance()->mapLayer( layerId ) )
if ( !datasource.isEmpty() && QgsProject::instance()->mapLayer( layerId ) )
{
QgsDataProvider::ProviderOptions options;
QgsMapLayer *mapLayer = QgsProject::instance()->mapLayer( layerId );

0 comments on commit 01c3b47

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