parent
64dc099d51
commit
7e36884cbd
@ -271,8 +271,13 @@ def maybe_import_webengine():
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
from PyQt5 import QtWebEngineWidgets # pylint: disable=unused-variable
|
from PyQt5 import QtWebEngineWidgets # pylint: disable=unused-variable
|
||||||
except ImportError:
|
except ImportError as e:
|
||||||
pass
|
from qutebrowser.utils import log
|
||||||
|
from PyQt5.QtCore import QCoreApplication
|
||||||
|
log.init.debug("Failed to import QtWebEngineWidgets: {}".format(e))
|
||||||
|
if 'QCoreApplication' in str(e):
|
||||||
|
log.init.debug("QApplication instance: {}".format(
|
||||||
|
QCoreApplication.instance()))
|
||||||
|
|
||||||
|
|
||||||
def remove_inputhook():
|
def remove_inputhook():
|
||||||
@ -320,5 +325,5 @@ def earlyinit(args):
|
|||||||
check_ssl_support()
|
check_ssl_support()
|
||||||
remove_inputhook()
|
remove_inputhook()
|
||||||
check_libraries()
|
check_libraries()
|
||||||
maybe_import_webengine()
|
|
||||||
init_log(args)
|
init_log(args)
|
||||||
|
maybe_import_webengine()
|
||||||
|
Loading…
Reference in New Issue
Block a user