Skip to content

Commit 9389be8

Browse files
committed
[processing] search also show children in config
1 parent 3b17d5a commit 9389be8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python/plugins/processing/gui/ConfigDialog.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,19 @@ def textChanged(self, text=None):
155155
self.tree.collapseAll()
156156
return False
157157

158-
def _filterItem(self, item, text):
158+
def _filterItem(self, item, text, forceShow=False):
159159
if item.hasChildren():
160-
show = isinstance(item, QStandardItem) and bool(text) and (text in item.text().lower())
160+
show = forceShow or isinstance(item, QStandardItem) and bool(text) and (text in item.text().lower())
161161
for i in range(item.rowCount()):
162162
child = item.child(i)
163-
show = self._filterItem(child, text) or show
163+
show = self._filterItem(child, text, forceShow) or show
164164
self.tree.setRowHidden(item.row(), item.index().parent(), not show)
165165
return show
166166

167167
elif isinstance(item, QStandardItem):
168-
hide = bool(text) and (text not in item.text().lower())
169-
self.tree.setRowHidden(item.row(), item.index().parent(), hide)
170-
return not hide
168+
show = forceShow or bool(text) and (text in item.text().lower())
169+
self.tree.setRowHidden(item.row(), item.index().parent(), not show)
170+
return show
171171

172172
def fillTree(self):
173173
self.fillTreeUsingProviders()

0 commit comments

Comments
 (0)