summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-06-16 15:55:09 +0200
committerRobert Honz <exislow+github@gmail.com>2024-06-16 15:55:09 +0200
commit9c5ef7afe4fccd1221b594265d01aac8e2857b4a (patch)
treea9960b92181d2f0e1cf1ff58986c61d3adac9f99
parente9af97ef915966ab107a9f294ea6dc87f9ab7df6 (diff)
downloadtidal-dl-ng-9c5ef7afe4fccd1221b594265d01aac8e2857b4a.tar.gz
🛠️ Apply filter for results with children. Fixes #130
-rw-r--r--tidal_dl_ng/helper/gui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tidal_dl_ng/helper/gui.py b/tidal_dl_ng/helper/gui.py
index a312c02..187f6a8 100644
--- a/tidal_dl_ng/helper/gui.py
+++ b/tidal_dl_ng/helper/gui.py
@@ -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: