Remove unneeded invalidateFilter call.

See #190.
This commit is contained in:
Florian Bruhin 2014-10-20 06:38:21 +02:00
parent 013a9ff216
commit b5781f0ed3

View File

@ -58,13 +58,12 @@ class CompletionFilterModel(QSortFilterProxyModel):
val: The value to set.
"""
self._pattern = val
self.invalidateFilter()
self.invalidate()
sortcol = 0
try:
self.srcmodel.sort(sortcol)
except NotImplementedError:
self.sort(sortcol)
self.invalidate()
def count(self):
"""Get the count of non-toplevel items currently visible.