From b37d040d44e5e14f10f93b2d3acd02f8bee9d4ad Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 14 Jun 2017 10:57:32 +0200 Subject: [PATCH] Add version check for 5.8 search segfault workaround --- qutebrowser/browser/webengine/webenginetab.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qutebrowser/browser/webengine/webenginetab.py b/qutebrowser/browser/webengine/webenginetab.py index 773404be9..9e27805c7 100644 --- a/qutebrowser/browser/webengine/webenginetab.py +++ b/qutebrowser/browser/webengine/webenginetab.py @@ -614,9 +614,10 @@ class WebEngineTab(browsertab.AbstractTab): def shutdown(self): self.shutting_down.emit() - # WORKAROUND for - # https://bugreports.qt.io/browse/QTBUG-58563 - self.search.clear() + if qtutils.version_check('5.8', exact=True): + # WORKAROUND for + # https://bugreports.qt.io/browse/QTBUG-58563 + self.search.clear() self._widget.shutdown() def reload(self, *, force=False):