Fixed an issue creating a new project via the VCS. 5_2_x

Thu, 12 Jul 2012 19:24:35 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 12 Jul 2012 19:24:35 +0200
branch
5_2_x
changeset 1942
9876c2fb55c6
parent 1938
057ba07e0e85
child 1946
e0ab34b1f195

Fixed an issue creating a new project via the VCS.

VCS/ProjectHelper.py file | annotate | diff | comparison | revisions
--- a/VCS/ProjectHelper.py	Mon Jul 09 18:54:06 2012 +0200
+++ b/VCS/ProjectHelper.py	Thu Jul 12 19:24:35 2012 +0200
@@ -150,12 +150,14 @@
             if vcsSystemDisplay == vcsSelected:
                 break
         
+        if not self.project.closeProject():
+            return
+        
         self.project.pdata["VCS"] = [vcsSystem]
         self.project.vcs = self.project.initVCS(vcsSystem)
         if self.project.vcs is not None:
             vcsdlg = self.project.vcs.vcsNewProjectOptionsDialog()
             if vcsdlg.exec_() == QDialog.Accepted:
-                self.project.closeProject()
                 projectdir, vcsDataDict = vcsdlg.getData()
                 self.project.pdata["VCS"] = [vcsSystem]
                 self.project.vcs = self.project.initVCS(vcsSystem)

eric ide

mercurial