Add comment in render_widget()

This commit is contained in:
Florian Bruhin 2019-02-17 15:16:39 +01:00
parent 82f8fc658d
commit 6305eb7860

View File

@ -64,6 +64,8 @@ class WebEngineView(QWebEngineView):
Normally, this would always be the focusProxy(). Normally, this would always be the focusProxy().
However, it sometimes isn't, so we use this as a WORKAROUND for However, it sometimes isn't, so we use this as a WORKAROUND for
https://bugreports.qt.io/browse/QTBUG-68727 https://bugreports.qt.io/browse/QTBUG-68727
This got introduced in Qt 5.11.0 and fixed in 5.12.0.
""" """
if 'lost-focusproxy' not in objreg.get('args').debug_flags: if 'lost-focusproxy' not in objreg.get('args').debug_flags:
proxy = self.focusProxy() proxy = self.focusProxy()