Skip to content
Permalink
Browse files
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 f202c72bdd1211f3447acf1896696d7bb93f1fd3
Showing with 4 additions and 5 deletions.
  1. +2 −4 python/core/auto_generated/qgspathresolver.sip.in
  2. +2 −1 src/core/qgspathresolver.h
@@ -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:

@@ -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:


@@ -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:
*

0 comments on commit f202c72

Please sign in to comment.