Skip to content
Permalink
Browse files

Merge pull request #7116 from rldhont/processing-infinite-loop-in-ref…

…resh-algorithms-tree-218

[BUGFIX][Processing] Infinite loop in refresh algorithms tree 2.18
  • Loading branch information
rldhont committed Jun 11, 2018
2 parents cd8ab68 + ad394ac commit 28958199002b12e5fa310490f3da4f03ca104005
@@ -67,6 +67,8 @@

class Processing:

currentlyUpdatingAlgList = False

providers = []

# Same structure as algs in algList
@@ -179,10 +181,14 @@ def updateAlgsList():
requires the list of algorithms to be created again from
algorithm providers.
"""
if Processing.currentlyUpdatingAlgList:
return
Processing.currentlyUpdatingAlgList = True
QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
for p in Processing.providers:
Processing.reloadProvider(p.getName())
QApplication.restoreOverrideCursor()
Processing.currentlyUpdatingAlgList = False

@staticmethod
def reloadProvider(providerName):
@@ -374,7 +374,6 @@ def __init__(self, providerName, tree, toolbox):

def refresh(self):
self.takeChildren()
Processing.updateAlgsList()
self.populate()

def populate(self):

0 comments on commit 2895819

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