From c32ba2f2c898bc3bc8aa472a82fa7da9d18456d3 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 4 Feb 2014 13:32:22 +0100 Subject: [PATCH] Only invalidate filter after filtering. This might avoid some odd segfaults, but it also means sorting won't work properly. --- qutebrowser/utils/completion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/utils/completion.py b/qutebrowser/utils/completion.py index bc2139567..a70a7f898 100644 --- a/qutebrowser/utils/completion.py +++ b/qutebrowser/utils/completion.py @@ -296,7 +296,7 @@ class CompletionFilterModel(QSortFilterProxyModel): If not, the default implementation in QCompletionFilterModel is called. """ self._pattern = val - self.invalidate() + self.invalidateFilter() sortcol = 0 srcmodel = self.sourceModel() if srcmodel is not None: