Fixed an issue creating a new project via the VCS.

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 12 Jul 2012 19:24:35 +0200
changeset 1941
aedf18497117
parent 1940
324e43e29b41
child 1944
01367570658d

Fixed an issue creating a new project via the VCS.

VCS/ProjectHelper.py file | annotate | diff | comparison | revisions
--- a/VCS/ProjectHelper.py	Wed Jul 11 19:15:52 2012 +0200
+++ b/VCS/ProjectHelper.py	Thu Jul 12 19:24:35 2012 +0200
@@ -153,12 +153,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