Skip to content
Permalink
Browse files

Fix freeze when auto-finding broken layers

  • Loading branch information
github-actions authored and nyalldawson committed Jul 12, 2020
1 parent ec56cc0 commit a9dbc88b98362939f5dedacd84c49733e936f994
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 a9dbc88

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