Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix incorrect note that setting a new path preprocessor replaces any …
…existing processor
  • Loading branch information
manisandro authored and nyalldawson committed Jun 18, 2021
1 parent c09be93 commit f202c72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions python/core/auto_generated/qgspathresolver.sip.in
Expand Up @@ -49,9 +49,8 @@ or data source), and return a processed version of this path.

The path pre-processor function is called before any bad layer handler.

.. note::

Setting a new ``processor`` replaces any existing processor.
If multiple preprocessors are set, they will be called in sequence based on the order in which
they were originally set.

Example - replace an outdated folder path with a new one:

Expand All @@ -62,7 +61,6 @@ Example - replace an outdated folder path with a new one:

QgsPathResolver.setPathPreprocessor(my_processor)


Example - replace a stored database host with a new one:


Expand Down
3 changes: 2 additions & 1 deletion src/core/qgspathresolver.h
Expand Up @@ -76,7 +76,8 @@ class CORE_EXPORT QgsPathResolver
*
* The path pre-processor function is called before any bad layer handler.
*
* \note Setting a new \a processor replaces any existing processor.
* If multiple preprocessors are set, they will be called in sequence based on the order in which
* they were originally set.
*
* Example - replace an outdated folder path with a new one:
*
Expand Down

0 comments on commit f202c72

Please sign in to comment.