🛠️ Apply filter for results with children. Fixes #130

This commit is contained in:
Robert Honz
2024-06-16 15:55:09 +02:00
parent e9af97ef91
commit 9c5ef7afe4
+1 -1
View File
@@ -192,7 +192,7 @@ class HumanProxyModel(QtCore.QSortFilterProxyModel):
data = ix.data()
# Append results to list to enable an AND operator for filtering.
result.append(bool(re.search(rf"{text}", data, re.MULTILINE | re.IGNORECASE)))
result.append(bool(re.search(rf"{text}", data, re.MULTILINE | re.IGNORECASE)) if data else False)
# If no filter set, just set the result to True.
if not result: