VCS/ProjectHelper.py

changeset 1083
dc680a0ce221
parent 1012
e3c069f40a4a
child 1112
8a7d1b9d18db
diff -r 8387830c1089 -r dc680a0ce221 VCS/ProjectHelper.py
--- a/VCS/ProjectHelper.py	Mon May 30 19:21:18 2011 +0200
+++ b/VCS/ProjectHelper.py	Mon May 30 19:23:59 2011 +0200
@@ -430,7 +430,14 @@
         """
         Protected slot used to switch the local project to another tag/branch.
         """
-        self.vcs.vcsSwitch(self.project.ppath)
+        shouldReopen = self.vcs.vcsSwitch(self.project.ppath)
+        if shouldReopen:
+            res = E5MessageBox.yesNo(self.parent(),
+                self.trUtf8("Switch"),
+                self.trUtf8("""The project should be reread. Do this now?"""),
+                yesDefault=True)
+            if res:
+                self.project.reopenProject()
         
     def _vcsMerge(self):
         """

eric ide

mercurial