Skip to content

Commit ecd113d

Browse files
committedJan 16, 2018
Fix modeler dialog doesn't respect hide from modeler flag
1 parent 95db682 commit ecd113d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
 

‎python/core/processing/qgsprocessingalgorithm.sip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ alphanumeric characters only and no spaces or other formatting characters.
179179

180180
.. seealso:: :py:func:`group`
181181
%End
182+
182183
virtual Flags flags() const;
183184
%Docstring
184185
Returns the flags indicating how and when the algorithm operates and should be exposed to users.

‎python/plugins/processing/modeler/ModelerDialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ def addAlgorithmsFromProvider(self, provider, parent):
711711

712712
# Add algorithms
713713
for alg in algs:
714-
if alg.flags() & QgsProcessingAlgorithm.FlagHideFromToolbox:
714+
if alg.flags() & QgsProcessingAlgorithm.FlagHideFromModeler:
715715
continue
716716
groupItem = None
717717
if alg.group() in groups:

‎src/core/processing/qgsprocessingalgorithm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class CORE_EXPORT QgsProcessingAlgorithm
206206
* alphanumeric characters only and no spaces or other formatting characters.
207207
* \see group()
208208
*/
209-
virtual QString groupId() const { return QString(); };
209+
virtual QString groupId() const { return QString(); }
210210

211211
/**
212212
* Returns the flags indicating how and when the algorithm operates and should be exposed to users.

0 commit comments

Comments
 (0)
Please sign in to comment.