From a1c7d179e3b399951f8901117dcb72b79c7e0430 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 5 Mar 2017 15:16:14 +0100 Subject: [PATCH] Only call QApplication::sync() with QtWebEngine --- qutebrowser/misc/miscwidgets.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qutebrowser/misc/miscwidgets.py b/qutebrowser/misc/miscwidgets.py index 4e111ad70..bbfbbc585 100644 --- a/qutebrowser/misc/miscwidgets.py +++ b/qutebrowser/misc/miscwidgets.py @@ -26,8 +26,8 @@ from PyQt5.QtWidgets import (QLineEdit, QWidget, QHBoxLayout, QLabel, QStyleOption, QStyle, QLayout, QApplication) from PyQt5.QtGui import QValidator, QPainter -from qutebrowser.utils import utils, objreg, qtutils, log -from qutebrowser.misc import cmdhistory +from qutebrowser.utils import utils, objreg, qtutils, log, usertypes +from qutebrowser.misc import cmdhistory, objects class MinimalLineEditMixin: @@ -263,6 +263,7 @@ class WrapperLayout(QLayout): container.setFocusProxy(widget) widget.setParent(container) if (qtutils.version_check('5.8.0', op=operator.eq) and + objects.backend == usertypes.Backend.QtWebEngine and container.window() and container.window().windowHandle() and not container.window().windowHandle().isActive()):