diff --git a/python/core/processing/qgsprocessingalgorithm.sip b/python/core/processing/qgsprocessingalgorithm.sip index e02445534389..1c09ba3062ee 100644 --- a/python/core/processing/qgsprocessingalgorithm.sip +++ b/python/core/processing/qgsprocessingalgorithm.sip @@ -179,6 +179,7 @@ alphanumeric characters only and no spaces or other formatting characters. .. seealso:: :py:func:`group` %End + virtual Flags flags() const; %Docstring Returns the flags indicating how and when the algorithm operates and should be exposed to users. diff --git a/python/plugins/processing/modeler/ModelerDialog.py b/python/plugins/processing/modeler/ModelerDialog.py index bdd593072608..86781d453073 100644 --- a/python/plugins/processing/modeler/ModelerDialog.py +++ b/python/plugins/processing/modeler/ModelerDialog.py @@ -711,7 +711,7 @@ def addAlgorithmsFromProvider(self, provider, parent): # Add algorithms for alg in algs: - if alg.flags() & QgsProcessingAlgorithm.FlagHideFromToolbox: + if alg.flags() & QgsProcessingAlgorithm.FlagHideFromModeler: continue groupItem = None if alg.group() in groups: diff --git a/src/core/processing/qgsprocessingalgorithm.h b/src/core/processing/qgsprocessingalgorithm.h index 8e1bf303ee5f..97a38fa9e91b 100644 --- a/src/core/processing/qgsprocessingalgorithm.h +++ b/src/core/processing/qgsprocessingalgorithm.h @@ -206,7 +206,7 @@ class CORE_EXPORT QgsProcessingAlgorithm * alphanumeric characters only and no spaces or other formatting characters. * \see group() */ - virtual QString groupId() const { return QString(); }; + virtual QString groupId() const { return QString(); } /** * Returns the flags indicating how and when the algorithm operates and should be exposed to users.