Remove unneeded invalidateFilter call.

First done in b5781f0ed3 and later
reverted in a6f1bf29ae because it had
broken "completion->shrink", but that is no longer the case.
This commit is contained in:
Jakub Klinkovský 2016-07-26 13:49:31 +02:00
parent 119f9c0e18
commit 2a70146db1

View File

@ -71,10 +71,9 @@ class CompletionFilterModel(QSortFilterProxyModel):
val = re.escape(val)
val = val.replace(r'\ ', r'.*')
self.pattern_re = re.compile(val, re.IGNORECASE)
self.invalidateFilter()
self.invalidate()
sortcol = 0
self.sort(sortcol)
self.invalidate()
def count(self):
"""Get the count of non-toplevel items currently visible.