mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
parent
2e2acf9170
commit
01c3b47806
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user