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:
Florian Bruhin 2014-02-04 13:32:22 +01:00
parent 1f59a00808
commit c32ba2f2c8

View File

@ -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: