Move createWindow debug logging to the top
This commit is contained in:
parent
7356e32b94
commit
76176814e0
@ -64,6 +64,9 @@ class WebEngineView(QWebEngineView):
|
|||||||
Return:
|
Return:
|
||||||
The new QWebEngineView object.
|
The new QWebEngineView object.
|
||||||
"""
|
"""
|
||||||
|
debug_type = debug.qenum_key(QWebEnginePage, wintype)
|
||||||
|
log.webview.debug("createWindow with type {}".format(debug_type))
|
||||||
|
|
||||||
# WORKAROUND for https://bugreports.qt.io/browse/QTBUG-54419
|
# WORKAROUND for https://bugreports.qt.io/browse/QTBUG-54419
|
||||||
vercheck = qtutils.version_check
|
vercheck = qtutils.version_check
|
||||||
qtbug_54419_fixed = ((vercheck('5.6.2') and not vercheck('5.7.0')) or
|
qtbug_54419_fixed = ((vercheck('5.6.2') and not vercheck('5.7.0')) or
|
||||||
@ -74,8 +77,6 @@ class WebEngineView(QWebEngineView):
|
|||||||
"to open new tabs via JS!")
|
"to open new tabs via JS!")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
debug_type = debug.qenum_key(QWebEnginePage, wintype)
|
|
||||||
log.webview.debug("createWindow with type {}".format(debug_type))
|
|
||||||
background = False
|
background = False
|
||||||
if wintype in [QWebEnginePage.WebBrowserWindow,
|
if wintype in [QWebEnginePage.WebBrowserWindow,
|
||||||
QWebEnginePage.WebDialog]:
|
QWebEnginePage.WebDialog]:
|
||||||
|
Loading…
Reference in New Issue
Block a user