Move createWindow debug logging to the top
This commit is contained in:
parent
7356e32b94
commit
76176814e0
@ -64,6 +64,9 @@ class WebEngineView(QWebEngineView):
|
||||
Return:
|
||||
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
|
||||
vercheck = qtutils.version_check
|
||||
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!")
|
||||
return None
|
||||
|
||||
debug_type = debug.qenum_key(QWebEnginePage, wintype)
|
||||
log.webview.debug("createWindow with type {}".format(debug_type))
|
||||
background = False
|
||||
if wintype in [QWebEnginePage.WebBrowserWindow,
|
||||
QWebEnginePage.WebDialog]:
|
||||
|
Loading…
Reference in New Issue
Block a user