eric7/Plugins/VcsPlugins/vcsMercurial/HgBookmarksListDialog.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
--- a/eric7/Plugins/VcsPlugins/vcsMercurial/HgBookmarksListDialog.py	Sat May 22 17:01:51 2021 +0200
+++ b/eric7/Plugins/VcsPlugins/vcsMercurial/HgBookmarksListDialog.py	Sat May 22 18:51:46 2021 +0200
@@ -13,8 +13,8 @@
     QInputDialog
 )
 
-from E5Gui.E5Application import e5App
-from E5Gui import E5MessageBox
+from E5Gui.EricApplication import ericApp
+from E5Gui import EricMessageBox
 
 from .Ui_HgBookmarksListDialog import Ui_HgBookmarksListDialog
 
@@ -296,14 +296,14 @@
         if bookmark:
             shouldReopen = self.vcs.vcsUpdate(revision=bookmark)
             if shouldReopen:
-                res = E5MessageBox.yesNo(
+                res = EricMessageBox.yesNo(
                     None,
                     self.tr("Switch"),
                     self.tr(
                         """The project should be reread. Do this now?"""),
                     yesDefault=True)
                 if res:
-                    e5App().getObject("Project").reopenProject()
+                    ericApp().getObject("Project").reopenProject()
                     return
             
             self.on_refreshButton_clicked()
@@ -315,7 +315,7 @@
         itm = self.bookmarksList.currentItem()
         bookmark = itm.text(3).strip()
         if bookmark:
-            yes = E5MessageBox.yesNo(
+            yes = EricMessageBox.yesNo(
                 self,
                 self.tr("Delete Bookmark"),
                 self.tr("""<p>Shall the bookmark <b>{0}</b> really be"""

eric ide

mercurial