Skip to content
Permalink
Browse files
Emit layer added signals in addMapLayers method of layer registry
  • Loading branch information
timlinux committed Apr 7, 2012
1 parent 3c0f3f0 commit 8ae8e1596c6500bece96c892eba9de99d7ba66d9
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/core/qgsmaplayerregistry.cpp
@@ -80,6 +80,8 @@ QList<QgsMapLayer *> QgsMapLayerRegistry::addMapLayers(
{
mMapLayers[myLayer->id()] = myLayer;
myResultList << mMapLayers[myLayer->id()];
if ( theEmitSignal )
emit layerWasAdded( myLayer );
}
}
if ( theEmitSignal )
@@ -95,10 +97,6 @@ QgsMapLayerRegistry::addMapLayer( QgsMapLayer * theMapLayer,
QList<QgsMapLayer *> myList;
myList.append(theMapLayer);
addMapLayers(myList, theEmitSignal);

if ( theEmitSignal )
emit layerWasAdded( theMapLayer );

return theMapLayer;
} // QgsMapLayerRegistry::addMapLayer

0 comments on commit 8ae8e15

Please sign in to comment.