From 905032924a2a1b110a62e5fd828dbd356b447ae1 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 9 May 2017 17:58:28 +0200 Subject: [PATCH] Remove search_displayed initialization in subclasses We set this in BrowserTab anyways, and the value in WebKitTab was wrong. --- qutebrowser/browser/webengine/webenginetab.py | 1 - qutebrowser/browser/webkit/webkittab.py | 1 - 2 files changed, 2 deletions(-) diff --git a/qutebrowser/browser/webengine/webenginetab.py b/qutebrowser/browser/webengine/webenginetab.py index c97035c0b..ffecb5686 100644 --- a/qutebrowser/browser/webengine/webenginetab.py +++ b/qutebrowser/browser/webengine/webenginetab.py @@ -124,7 +124,6 @@ class WebEngineSearch(browsertab.AbstractSearch): def __init__(self, parent=None): super().__init__(parent) self._flags = QWebEnginePage.FindFlags(0) - self.search_displayed = False def _find(self, text, flags, callback, caller): """Call findText on the widget.""" diff --git a/qutebrowser/browser/webkit/webkittab.py b/qutebrowser/browser/webkit/webkittab.py index cf33098e0..a5a02338e 100644 --- a/qutebrowser/browser/webkit/webkittab.py +++ b/qutebrowser/browser/webkit/webkittab.py @@ -103,7 +103,6 @@ class WebKitSearch(browsertab.AbstractSearch): def __init__(self, parent=None): super().__init__(parent) self._flags = QWebPage.FindFlags(0) - self.search_displayed = True def _call_cb(self, callback, found, text, flags, caller): """Call the given callback if it's non-None.