Skip to content

Commit 0af7006

Browse files
committedFeb 3, 2016
[processing] do not recreate algs tree when removing provider
This should fix the problem of QGIS taking to long to shutdown if there are plugins that add algorithms to Processing
1 parent b6c714a commit 0af7006

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/plugins/processing/core/Processing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def removeProvider(provider):
106106
try:
107107
provider.unload()
108108
Processing.providers.remove(provider)
109-
ProcessingConfig.readSettings()
110-
Processing.updateAlgsList()
109+
del Processing.algs[provider.getName()]
110+
Processing.fireAlgsListHasChanged()
111111
except:
112112
# This try catch block is here to avoid problems if the
113113
# plugin with a provider is unloaded after the Processing

0 commit comments

Comments
 (0)
Please sign in to comment.