Skip to content
Permalink
Browse files

Added note in the documentation about the new behavior

  • Loading branch information
elpaso committed Mar 25, 2019
1 parent 7c8f584 commit eb3e18ddaa4a81def8e4dd790361e604649bb8a0
Showing with 12 additions and 0 deletions.
  1. +7 −0 python/core/auto_generated/qgsmaplayerstore.sip.in
  2. +5 −0 src/core/qgsmaplayerstore.h
@@ -120,6 +120,13 @@ The layersAdded() and layerWasAdded() signals will always be emitted.

:param layers: A list of layer which should be added to the store.

.. note::

if layer with the same id is already in the store it is not added again,
but if the validity of the layer has changed from false to true, the
layer data source is updated to the new one.


:return: a list of the map layers that were added
successfully. If a layer already exists in the store,
it will not be part of the returned list.
@@ -149,6 +149,11 @@ class CORE_EXPORT QgsMapLayerStore : public QObject
* If you specify FALSE here you have take care of deleting
* the layers yourself. Not available in Python.
*
*
* \note if layer with the same id is already in the store it is not added again,
* but if the validity of the layer has changed from false to true, the
* layer data source is updated to the new one.
*
* \returns a list of the map layers that were added
* successfully. If a layer already exists in the store,
* it will not be part of the returned list.

0 comments on commit eb3e18d

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