Skip to content

Commit 85b6cba

Browse files
committedSep 15, 2016
[processing] fix search by alg name (fix #15562)
(cherry picked from commit 11f8aa2)
1 parent 04cd103 commit 85b6cba

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎python/plugins/processing/gui/CommanderWindow.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
from qgis.PyQt.QtWidgets import QDialog, QLabel, QSpacerItem, QHBoxLayout, QVBoxLayout, QSizePolicy, QComboBox, QCompleter
3232
from qgis.PyQt.QtCore import QSortFilterProxyModel
3333
from qgis.utils import iface
34-
from processing.core.Processing import Processing
3534
from processing.core.alglist import algList
3635
from processing.gui.MessageDialog import MessageDialog
3736
from processing.gui.AlgorithmDialog import AlgorithmDialog
@@ -100,8 +99,8 @@ def fillCombo(self):
10099
self.combo.clear()
101100

102101
# Add algorithms
103-
for algs in algList.algs.values():
104-
for alg in algs:
102+
for provider in algList.algs.values():
103+
for alg in provider:
105104
self.combo.addItem('Processing algorithm: ' + alg)
106105

107106
# Add functions
@@ -153,7 +152,7 @@ def run(self):
153152
s = unicode(self.combo.currentText())
154153
if s.startswith('Processing algorithm: '):
155154
algName = s[len('Processing algorithm: '):]
156-
alg = Processing.getAlgorithmFromFullName(algName)
155+
alg = algList.getAlgorithm(algName)
157156
if alg is not None:
158157
self.close()
159158
self.runAlgorithm(alg)

0 commit comments

Comments
 (0)
Please sign in to comment.