changeset 390:3d009fec34da

core (utils): fixed FilterBehavior use of "children" attribute
author Goffi <goffi@goffi.org>
date Thu, 06 Feb 2020 21:16:21 +0100
parents 442756495a96
children 841045d5a937
files cagou/core/utils.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/core/utils.py	Thu Feb 06 21:16:21 2020 +0100
+++ b/cagou/core/utils.py	Thu Feb 06 21:16:21 2020 +0100
@@ -55,7 +55,7 @@
         text = text.strip().lower()
         filtering = len(text)>len(self._filter_last)
         self._filter_last = text
-        for child in self.layout.children:
+        for child in children:
             if continue_tests is not None and any((t(child) for t in continue_tests)):
                 continue
             if text in get_child_text(child).lower():