Skip to content

Commit

Permalink
[processing] improved algorithm filtering in toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Mar 26, 2014
1 parent eb360e0 commit b74cb42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/gui/ProcessingToolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self):
self.fillTree()

def textChanged(self):
text = self.searchBox.text().strip(' ')
text = self.searchBox.text().strip(' ').lower()
self._filterItem(self.algorithmTree.invisibleRootItem(), text)
if text:
self.algorithmTree.expandAll()
Expand All @@ -92,8 +92,8 @@ def _filterItem(self, item, text):
show = showChild or show
item.setHidden(not show)
return show
elif isinstance(item, TreeAlgorithmItem):
hide = bool(text) and (text not in item.text(0))
elif isinstance(item, (TreeAlgorithmItem, TreeActionItem)):
hide = bool(text) and (text not in item.text(0).lower())
item.setHidden(hide)
return not hide
else:
Expand Down

0 comments on commit b74cb42

Please sign in to comment.