Remove search_displayed initialization in subclasses

We set this in BrowserTab anyways, and the value in WebKitTab was wrong.
This commit is contained in:
Florian Bruhin 2017-05-09 17:58:28 +02:00
parent 4b5e528d05
commit 905032924a
2 changed files with 0 additions and 2 deletions

View File

@ -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."""

View File

@ -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.