Skip to content

Commit

Permalink
Emit layer added signals in addMapLayers method of layer registry
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Apr 7, 2012
1 parent 3c0f3f0 commit 8ae8e15
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/qgsmaplayerregistry.cpp
Expand Up @@ -80,6 +80,8 @@ QList<QgsMapLayer *> QgsMapLayerRegistry::addMapLayers(
{
mMapLayers[myLayer->id()] = myLayer;
myResultList << mMapLayers[myLayer->id()];
if ( theEmitSignal )
emit layerWasAdded( myLayer );
}
}
if ( theEmitSignal )
Expand All @@ -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

Expand Down

0 comments on commit 8ae8e15

Please sign in to comment.