Revert "Remove unneeded invalidateFilter call."

This reverts commit b5781f0ed3.

For some reason this did break the "completion->shrink" setting.

Closes #204.
Makes #190 a bit worse again though.

Conflicts:
	qutebrowser/models/completionfilter.py
This commit is contained in:
Florian Bruhin 2014-10-20 12:01:48 +02:00
parent 0a5cee6ea2
commit a6f1bf29ae

View File

@ -58,12 +58,13 @@ class CompletionFilterModel(QSortFilterProxyModel):
val: The value to set.
"""
self.pattern = val
self.invalidate()
self.invalidateFilter()
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.