WebBrowser/Tools/WebBrowserTools.py

changeset 6630
bddd12f27a4c
parent 6048
82ad8ec9548c
child 6645
ad476851d7e0
--- a/WebBrowser/Tools/WebBrowserTools.py	Fri Dec 14 19:52:38 2018 +0100
+++ b/WebBrowser/Tools/WebBrowserTools.py	Sat Dec 15 16:21:38 2018 +0100
@@ -196,8 +196,9 @@
     @return tuple containing the Chrome version and the QtWebEngine version
     @rtype tuple of str
     """
-    from WebBrowser.WebBrowserWindow import WebBrowserWindow
-    useragent = WebBrowserWindow.webProfile().defaultUserAgent
+    from PyQt5.QtWebEngineWidgets import QWebEngineProfile
+    
+    useragent = QWebEngineProfile.defaultProfile().httpUserAgent()
     match = re.search(r"""Chrome/([\d.]+)""", useragent)
     if match:
         chromeVersion = match.group(1)

eric ide

mercurial