Add a lost-focusproxy debug flag
This commit is contained in:
parent
a6b314ae91
commit
c328d54ebe
@ -66,9 +66,10 @@ class WebEngineView(QWebEngineView):
|
|||||||
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
|
||||||
"""
|
"""
|
||||||
proxy = self.focusProxy()
|
if 'lost-focusproxy' not in objreg.get('args').debug_flags:
|
||||||
if proxy is not None:
|
proxy = self.focusProxy()
|
||||||
return proxy
|
if proxy is not None:
|
||||||
|
return proxy
|
||||||
|
|
||||||
# This should only find the RenderWidgetHostViewQtDelegateWidget,
|
# This should only find the RenderWidgetHostViewQtDelegateWidget,
|
||||||
# but not e.g. a QMenu
|
# but not e.g. a QMenu
|
||||||
|
@ -167,7 +167,7 @@ def debug_flag_error(flag):
|
|||||||
log-requests: Log all network requests.
|
log-requests: Log all network requests.
|
||||||
"""
|
"""
|
||||||
valid_flags = ['debug-exit', 'pdb-postmortem', 'no-sql-history',
|
valid_flags = ['debug-exit', 'pdb-postmortem', 'no-sql-history',
|
||||||
'no-scroll-filtering', 'log-requests']
|
'no-scroll-filtering', 'log-requests', 'lost-focusproxy']
|
||||||
|
|
||||||
if flag in valid_flags:
|
if flag in valid_flags:
|
||||||
return flag
|
return flag
|
||||||
|
Loading…
Reference in New Issue
Block a user