Skip to content

Commit

Permalink
[processing] fix search by alg name (fix #15562)
Browse files Browse the repository at this point in the history
(cherry picked from commit 11f8aa2)
  • Loading branch information
alexbruy committed Sep 15, 2016
1 parent 91bfa78 commit 8eea065
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/plugins/processing/gui/CommanderWindow.py
Expand Up @@ -31,7 +31,6 @@
from qgis.PyQt.QtWidgets import QDialog, QLabel, QSpacerItem, QHBoxLayout, QVBoxLayout, QSizePolicy, QComboBox, QCompleter
from qgis.PyQt.QtCore import QSortFilterProxyModel
from qgis.utils import iface
from processing.core.Processing import Processing
from processing.core.alglist import algList
from processing.gui.MessageDialog import MessageDialog
from processing.gui.AlgorithmDialog import AlgorithmDialog
Expand Down Expand Up @@ -100,8 +99,8 @@ def fillCombo(self):
self.combo.clear()

# Add algorithms
for algs in algList.algs.values():
for alg in algs:
for provider in algList.algs.values():
for alg in provider:
self.combo.addItem('Processing algorithm: ' + alg)

# Add functions
Expand Down Expand Up @@ -153,7 +152,7 @@ def run(self):
s = unicode(self.combo.currentText())
if s.startswith('Processing algorithm: '):
algName = s[len('Processing algorithm: '):]
alg = Processing.getAlgorithmFromFullName(algName)
alg = algList.getAlgorithm(algName)
if alg is not None:
self.close()
self.runAlgorithm(alg)
Expand Down

0 comments on commit 8eea065

Please sign in to comment.