Skip to content
Permalink
Browse files

[processing] correctly handle inactive providers in the modeler (fix #…

…18461)

(cherry picked from commit 092557b)
  • Loading branch information
alexbruy committed Mar 19, 2018
1 parent 1e107ff commit 6a027e7a2e24e6b378db06f970385a8188cb4078
Showing with 4 additions and 5 deletions.
  1. +4 −5 python/plugins/processing/modeler/ModelerDialog.py
@@ -695,12 +695,7 @@ def fillTreeUsingProviders(self):
else:
providerItem = TreeProviderItem(provider, self.algorithmTree, self)

if not provider.isActive():
providerItem.setHidden(True)
self.disabledProviderItems[provider.id()] = providerItem

# insert non-native providers at end of tree, alphabetically

for i in range(self.algorithmTree.invisibleRootItem().childCount()):
child = self.algorithmTree.invisibleRootItem().child(i)
if isinstance(child, TreeProviderItem):
@@ -709,6 +704,10 @@ def fillTreeUsingProviders(self):

self.algorithmTree.insertTopLevelItem(i + 1, providerItem)

if not provider.isActive():
providerItem.setHidden(True)
self.disabledProviderItems[provider.id()] = providerItem

def addAlgorithmsFromProvider(self, provider, parent):
groups = {}
count = 0

0 comments on commit 6a027e7

Please sign in to comment.
You can’t perform that action at this time.