VCS/ProjectHelper.py

branch
5_1_x
changeset 1013
bdf49619d9c6
parent 791
9ec2ac20e54e
child 1321
ff971e15cf95
--- a/VCS/ProjectHelper.py	Fri Apr 29 18:35:48 2011 +0200
+++ b/VCS/ProjectHelper.py	Tue May 03 19:35:32 2011 +0200
@@ -129,6 +129,10 @@
         
         vcsSystemsDict = e5App().getObject("PluginManager")\
             .getPluginDisplayStrings("version_control")
+        if not vcsSystemsDict:
+            # no version control system found
+            return
+        
         vcsSystemsDisplay = []
         keys = sorted(vcsSystemsDict.keys())
         for key in keys:
@@ -289,6 +293,10 @@
         vcsHelper = self.project.vcsProjectHelper
         vcsSystemsDict = e5App().getObject("PluginManager")\
             .getPluginDisplayStrings("version_control")
+        if not vcsSystemsDict:
+            # no version control system found
+            return
+        
         vcsSystemsDisplay = []
         keys = sorted(list(vcsSystemsDict.keys()))
         for key in keys:

eric ide

mercurial