Some code cleanup. eric7

Mon, 14 Jun 2021 17:50:56 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 14 Jun 2021 17:50:56 +0200
branch
eric7
changeset 8424
777c21b9dbe1
parent 8423
398d2f98da85
child 8425
63cc81d35ddc

Some code cleanup.

eric7/WebBrowser/Network/NetworkManager.py file | annotate | diff | comparison | revisions
eric7/WebBrowser/WebBrowserWindow.py file | annotate | diff | comparison | revisions
--- a/eric7/WebBrowser/Network/NetworkManager.py	Sun Jun 13 19:11:32 2021 +0200
+++ b/eric7/WebBrowser/Network/NetworkManager.py	Mon Jun 14 17:50:56 2021 +0200
@@ -93,13 +93,8 @@
                 QByteArray(b"qthelp"), self.__qtHelpSchemeHandler)
         
         self.__interceptor = NetworkUrlInterceptor(self)
-        try:
-            WebBrowserWindow.webProfile().setUrlRequestInterceptor(
-                self.__interceptor)
-        except AttributeError:
-            #  Qt < 5.13
-            WebBrowserWindow.webProfile().setRequestInterceptor(
-                self.__interceptor)
+        WebBrowserWindow.webProfile().setUrlRequestInterceptor(
+            self.__interceptor)
         
         WebBrowserWindow.cookieJar()
     
--- a/eric7/WebBrowser/WebBrowserWindow.py	Sun Jun 13 19:11:32 2021 +0200
+++ b/eric7/WebBrowser/WebBrowserWindow.py	Mon Jun 14 17:50:56 2021 +0200
@@ -3301,6 +3301,7 @@
             if cls._helpEngine is None:
                 cls._helpEngine = QHelpEngine(
                     WebBrowserWindow.getQtHelpCollectionFileName())
+                cls._helpEngine.setUsesFilterEngine(True)
             return cls._helpEngine
         else:
             return None

eric ide

mercurial