VCS/ProjectHelper.py

changeset 1012
e3c069f40a4a
parent 945
8cd4d08fa9f6
child 1083
dc680a0ce221
--- a/VCS/ProjectHelper.py	Mon May 02 19:59:41 2011 +0200
+++ b/VCS/ProjectHelper.py	Tue May 03 19:35:10 2011 +0200
@@ -130,6 +130,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:
@@ -290,6 +294,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