eric6/WebBrowser/WebBrowserTabWidget.py

changeset 7514
0960c7c1f497
parent 7366
bd743eacfbca
child 7533
88261c96484b
diff -r d8354f4d3dc7 -r 0960c7c1f497 eric6/WebBrowser/WebBrowserTabWidget.py
--- a/eric6/WebBrowser/WebBrowserTabWidget.py	Thu Apr 09 17:59:24 2020 +0200
+++ b/eric6/WebBrowser/WebBrowserTabWidget.py	Thu Apr 09 18:00:40 2020 +0200
@@ -32,8 +32,6 @@
 import Preferences
 import Globals
 
-from eric6config import getConfig
-
 
 def isCupsAvailable():
     """
@@ -884,13 +882,9 @@
         @type WebBrowserView
         """
         index = self.indexOf(browser)
-        anim = self.animationLabel(
-            index, os.path.join(getConfig("ericPixDir"), "loading.gif"),
-            100)
+        anim = self.animationLabel(index, "loadingAnimation", 40)
         if not anim:
-            loading = QIcon(os.path.join(getConfig("ericPixDir"),
-                            "loading.gif"))
-            self.setTabIcon(index, loading)
+            self.setTabIcon(index, UI.PixmapCache.getIcon("loading"))
         else:
             self.setTabIcon(index, QIcon())
         self.setTabText(index, self.tr("Loading..."))

eric ide

mercurial