mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Fixed bug with signal being emitted declaring layers were added but having a zero length layer list
This commit is contained in:
parent
23d53627d4
commit
ba003e6ee3
@ -84,8 +84,10 @@ QList<QgsMapLayer *> QgsMapLayerRegistry::addMapLayers(
|
|||||||
emit layerWasAdded( myLayer );
|
emit layerWasAdded( myLayer );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( theEmitSignal )
|
if ( theEmitSignal && myResultList.count() > 0 )
|
||||||
|
{
|
||||||
emit layersAdded( myResultList );
|
emit layersAdded( myResultList );
|
||||||
|
}
|
||||||
return myResultList;
|
return myResultList;
|
||||||
} // QgsMapLayerRegistry::addMapLayers
|
} // QgsMapLayerRegistry::addMapLayers
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user