eric7/WebBrowser/Passwords/PasswordManager.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
diff -r 8a7677a63c8d -r 68ec9c3d4de5 eric7/WebBrowser/Passwords/PasswordManager.py
--- a/eric7/WebBrowser/Passwords/PasswordManager.py	Sat May 22 17:01:51 2021 +0200
+++ b/eric7/WebBrowser/Passwords/PasswordManager.py	Sat May 22 18:51:46 2021 +0200
@@ -15,8 +15,8 @@
 from PyQt6.QtWidgets import QApplication
 from PyQt6.QtWebEngineWidgets import QWebEngineScript
 
-from E5Gui import E5MessageBox
-from E5Gui.E5ProgressDialog import E5ProgressDialog
+from E5Gui import EricMessageBox
+from E5Gui.EricProgressDialog import EricProgressDialog
 
 from Utilities.AutoSaver import AutoSaver
 import Utilities
@@ -157,7 +157,7 @@
             writer = PasswordWriter()
             if not writer.write(
                     loginFile, self.__logins, self.__loginForms, self.__never):
-                E5MessageBox.critical(
+                EricMessageBox.critical(
                     None,
                     self.tr("Saving login data"),
                     self.tr(
@@ -181,7 +181,7 @@
             self.__logins, self.__loginForms, self.__never = reader.read(
                 loginFile)
             if reader.error() != QXmlStreamReader.Error.NoError:
-                E5MessageBox.warning(
+                EricMessageBox.warning(
                     None,
                     self.tr("Loading login data"),
                     self.tr("""Error when loading login data on"""
@@ -291,8 +291,8 @@
             url = self.__stripUrl(url)
             key = self.__createKey(url, "")
             if key not in self.__loginForms:
-                mb = E5MessageBox.E5MessageBox(
-                    E5MessageBox.Question,
+                mb = EricMessageBox.EricMessageBox(
+                    EricMessageBox.Question,
                     self.tr("Save password"),
                     self.tr(
                         """<b>Would you like to save this password?</b><br/>"""
@@ -302,10 +302,10 @@
                     modal=True, parent=page.view())
                 neverButton = mb.addButton(
                     self.tr("Never for this site"),
-                    E5MessageBox.DestructiveRole)
+                    EricMessageBox.DestructiveRole)
                 noButton = mb.addButton(
-                    self.tr("Not now"), E5MessageBox.RejectRole)
-                mb.addButton(E5MessageBox.Yes)
+                    self.tr("Not now"), EricMessageBox.RejectRole)
+                mb.addButton(EricMessageBox.Yes)
                 mb.exec()
                 if mb.clickedButton() == neverButton:
                     self.__never.append(url.toString())
@@ -385,7 +385,7 @@
         if not self.__loaded:
             self.__load()
         
-        progress = E5ProgressDialog(
+        progress = EricProgressDialog(
             self.tr("Re-encoding saved passwords..."),
             None, 0, len(self.__logins) + len(self.__loginForms),
             self.tr("%v/%m Passwords"),

eric ide

mercurial