Skip to content

Commit

Permalink
Fix modeler dialog doesn't respect hide from modeler flag
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 16, 2018
1 parent 95db682 commit ecd113d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions python/core/processing/qgsprocessingalgorithm.sip
Expand Up @@ -179,6 +179,7 @@ alphanumeric characters only and no spaces or other formatting characters.


.. seealso:: :py:func:`group` .. seealso:: :py:func:`group`
%End %End

virtual Flags flags() const; virtual Flags flags() const;
%Docstring %Docstring
Returns the flags indicating how and when the algorithm operates and should be exposed to users. Returns the flags indicating how and when the algorithm operates and should be exposed to users.
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/modeler/ModelerDialog.py
Expand Up @@ -711,7 +711,7 @@ def addAlgorithmsFromProvider(self, provider, parent):


# Add algorithms # Add algorithms
for alg in algs: for alg in algs:
if alg.flags() & QgsProcessingAlgorithm.FlagHideFromToolbox: if alg.flags() & QgsProcessingAlgorithm.FlagHideFromModeler:
continue continue
groupItem = None groupItem = None
if alg.group() in groups: if alg.group() in groups:
Expand Down
2 changes: 1 addition & 1 deletion src/core/processing/qgsprocessingalgorithm.h
Expand Up @@ -206,7 +206,7 @@ class CORE_EXPORT QgsProcessingAlgorithm
* alphanumeric characters only and no spaces or other formatting characters. * alphanumeric characters only and no spaces or other formatting characters.
* \see group() * \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. * Returns the flags indicating how and when the algorithm operates and should be exposed to users.
Expand Down

0 comments on commit ecd113d

Please sign in to comment.