diff options
author | booer <kel42@mail.ru> | 2020-09-02 15:31:34 +0700 |
---|---|---|
committer | booer <kel42@mail.ru> | 2020-09-02 17:11:13 +0700 |
commit | 7f226d0a8543e0470e3faefae2347fb4862a476c (patch) | |
tree | d29b970dcb7489123ec6ef9e6c3038cfbf0542ee | |
parent | 39228830ce726657d4b81a5eab0d68cf9530434d (diff) |
Fix filtering of search results in SectionedInspector
-rw-r--r-- | editor/editor_sectioned_inspector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_sectioned_inspector.cpp b/editor/editor_sectioned_inspector.cpp index eabbf6b0d8..cf19b54cff 100644 --- a/editor/editor_sectioned_inspector.cpp +++ b/editor/editor_sectioned_inspector.cpp @@ -238,7 +238,7 @@ void SectionedInspector::update_category_list() { continue; } - if (!filter.empty() && !filter.is_subsequence_ofi(pi.name) && !filter.is_subsequence_ofi(pi.name.replace("/", " ").capitalize())) { + if (!filter.empty() && pi.name.findn(filter) == -1 && pi.name.replace("/", " ").capitalize().findn(filter) == -1) { continue; } |