Skip to content
Permalink
Browse files

Merge pull request #37765 from elpaso/bugfix-gh37757-auto-find

Fix freeze when auto-finding broken layers
  • Loading branch information
elpaso committed Jul 12, 2020
2 parents 2e2acf9 + 01c3b47 commit 2c1bcffbc8b03b9f74d2efaecf732c7e96b816a1
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 2c1bcff

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