Skip to content

Commit b74cb42

Browse files
committedMar 26, 2014
[processing] improved algorithm filtering in toolbox
1 parent eb360e0 commit b74cb42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self):
7575
self.fillTree()
7676

7777
def textChanged(self):
78-
text = self.searchBox.text().strip(' ')
78+
text = self.searchBox.text().strip(' ').lower()
7979
self._filterItem(self.algorithmTree.invisibleRootItem(), text)
8080
if text:
8181
self.algorithmTree.expandAll()
@@ -92,8 +92,8 @@ def _filterItem(self, item, text):
9292
show = showChild or show
9393
item.setHidden(not show)
9494
return show
95-
elif isinstance(item, TreeAlgorithmItem):
96-
hide = bool(text) and (text not in item.text(0))
95+
elif isinstance(item, (TreeAlgorithmItem, TreeActionItem)):
96+
hide = bool(text) and (text not in item.text(0).lower())
9797
item.setHidden(hide)
9898
return not hide
9999
else:

0 commit comments

Comments
 (0)
Please sign in to comment.