mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fix filter bug
This commit is contained in:
parent
48242818e3
commit
c6df758275
1 changed files with 4 additions and 1 deletions
|
|
@ -736,7 +736,10 @@ class AssetRecursiveSortFilterModel(QtCore.QSortFilterProxyModel):
|
|||
valid = True
|
||||
if self._name_filter:
|
||||
name = model.data(source_index, ASSET_NAME_ROLE)
|
||||
if not re.search(self._name_filter, name, re.IGNORECASE):
|
||||
if (
|
||||
name is None
|
||||
or not re.search(self._name_filter, name, re.IGNORECASE)
|
||||
):
|
||||
valid = False
|
||||
|
||||
if valid and self._task_types_filter:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue