--- a/eric7/WebBrowser/Network/NetworkManager.py Sat May 22 17:01:51 2021 +0200 +++ b/eric7/WebBrowser/Network/NetworkManager.py Sat May 22 18:51:46 2021 +0200 @@ -16,8 +16,8 @@ QNetworkAccessManager, QNetworkProxy, QNetworkProxyFactory, QNetworkRequest ) -from E5Gui import E5MessageBox -from E5Gui.E5Application import e5App +from E5Gui import EricMessageBox +from E5Gui.EricApplication import ericApp from EricNetwork.EricNetworkProxyFactory import proxyAuthenticationRequired try: @@ -197,8 +197,8 @@ return True title = self.tr("SSL Certificate Error") - msgBox = E5MessageBox.E5MessageBox( - E5MessageBox.Warning, + msgBox = EricMessageBox.EricMessageBox( + EricMessageBox.Warning, title, self.tr("""<b>{0}</b>""" """<p>The host <b>{1}</b> you are trying to access has""" @@ -208,10 +208,10 @@ .format(title, host, error.errorDescription()), modal=True, parent=view) permButton = msgBox.addButton(self.tr("&Permanent accept"), - E5MessageBox.AcceptRole) + EricMessageBox.AcceptRole) tempButton = msgBox.addButton(self.tr("&Temporary accept"), - E5MessageBox.AcceptRole) - msgBox.addButton(self.tr("&Reject"), E5MessageBox.RejectRole) + EricMessageBox.AcceptRole) + msgBox.addButton(self.tr("&Reject"), EricMessageBox.RejectRole) msgBox.exec() if msgBox.clickedButton() == permButton: if host not in self.__permanentlyIgnoredSslErrors: @@ -324,11 +324,11 @@ """ html = getHtmlPage("authenticationErrorPage.html") html = html.replace("@IMAGE@", pixmapToDataUrl( - e5App().style().standardIcon( + ericApp().style().standardIcon( QStyle.StandardPixmap.SP_MessageBoxCritical).pixmap(48, 48) ).toString()) html = html.replace("@FAVICON@", pixmapToDataUrl( - e5App().style() .standardIcon( + ericApp().style() .standardIcon( QStyle.StandardPixmap.SP_MessageBoxCritical).pixmap(16, 16) ).toString()) html = html.replace("@TITLE@", self.tr("Authentication required"))