eric7/MultiProject/MultiProjectBrowser.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
--- a/eric7/MultiProject/MultiProjectBrowser.py	Sat May 22 17:01:51 2021 +0200
+++ b/eric7/MultiProject/MultiProjectBrowser.py	Sat May 22 18:51:46 2021 +0200
@@ -13,8 +13,8 @@
 from PyQt6.QtCore import Qt
 from PyQt6.QtWidgets import QTreeWidget, QTreeWidgetItem, QDialog, QMenu
 
-from E5Gui.E5Application import e5App
-from E5Gui import E5MessageBox
+from E5Gui.EricApplication import ericApp
+from E5Gui import EricMessageBox
 
 import UI.PixmapCache
 
@@ -303,7 +303,7 @@
             projectPath = os.path.dirname(projectFile)
             
             if self.project.getProjectPath() == projectPath:
-                E5MessageBox.warning(
+                EricMessageBox.warning(
                     self,
                     self.tr("Delete Project"),
                     self.tr("""The current project cannot be deleted."""
@@ -315,14 +315,14 @@
                     # Oops, that should not happen; play it save
                     res = False
                 elif len(projectFiles) == 1:
-                    res = E5MessageBox.yesNo(
+                    res = EricMessageBox.yesNo(
                         self,
                         self.tr("Delete Project"),
                         self.tr("""<p>Shall the project <b>{0}</b> (Path:"""
                                 """ {1}) really be deleted?</p>""").format(
                             itm.text(0), projectPath))
                 else:
-                    res = E5MessageBox.yesNo(
+                    res = EricMessageBox.yesNo(
                         self,
                         self.tr("Delete Project"),
                         self.tr("""<p>Shall the project <b>{0}</b> (Path:"""
@@ -437,4 +437,4 @@
         """
         Private method to open the configuration dialog.
         """
-        e5App().getObject("UserInterface").showPreferences("multiProjectPage")
+        ericApp().getObject("UserInterface").showPreferences("multiProjectPage")

eric ide

mercurial