Only invalidate filter after filtering.
This might avoid some odd segfaults, but it also means sorting won't work properly.
This commit is contained in:
parent
1f59a00808
commit
c32ba2f2c8
@ -296,7 +296,7 @@ class CompletionFilterModel(QSortFilterProxyModel):
|
|||||||
If not, the default implementation in QCompletionFilterModel is called.
|
If not, the default implementation in QCompletionFilterModel is called.
|
||||||
"""
|
"""
|
||||||
self._pattern = val
|
self._pattern = val
|
||||||
self.invalidate()
|
self.invalidateFilter()
|
||||||
sortcol = 0
|
sortcol = 0
|
||||||
srcmodel = self.sourceModel()
|
srcmodel = self.sourceModel()
|
||||||
if srcmodel is not None:
|
if srcmodel is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user