eric6/WebBrowser/Network/NetworkManager.py

changeset 7761
ed2c67d20328
parent 7759
51aa6c6b66f7
child 7781
607a6098cb44
diff -r fcd3322bf6ed -r ed2c67d20328 eric6/WebBrowser/Network/NetworkManager.py
--- a/eric6/WebBrowser/Network/NetworkManager.py	Tue Oct 06 17:55:10 2020 +0200
+++ b/eric6/WebBrowser/Network/NetworkManager.py	Tue Oct 06 17:56:16 2020 +0200
@@ -11,12 +11,13 @@
 import json
 
 from PyQt5.QtCore import pyqtSignal, QByteArray
-from PyQt5.QtWidgets import qApp, QStyle, QDialog
+from PyQt5.QtWidgets import QStyle, QDialog
 from PyQt5.QtNetwork import (
     QNetworkAccessManager, QNetworkProxy, QNetworkProxyFactory, QNetworkRequest
 )
 
 from E5Gui import E5MessageBox
+from E5Gui.E5Application import e5App
 
 from E5Network.E5NetworkProxyFactory import proxyAuthenticationRequired
 try:
@@ -327,10 +328,10 @@
         """
         html = getHtmlPage("authenticationErrorPage.html")
         html = html.replace("@IMAGE@", pixmapToDataUrl(
-            qApp.style().standardIcon(QStyle.SP_MessageBoxCritical).pixmap(
+            e5App().style().standardIcon(QStyle.SP_MessageBoxCritical).pixmap(
                 48, 48)).toString())
         html = html.replace("@FAVICON@", pixmapToDataUrl(
-            qApp.style() .standardIcon(QStyle.SP_MessageBoxCritical).pixmap(
+            e5App().style() .standardIcon(QStyle.SP_MessageBoxCritical).pixmap(
                 16, 16)).toString())
         html = html.replace("@TITLE@", self.tr("Authentication required"))
         html = html.replace("@H1@", self.tr("Authentication required"))

eric ide

mercurial