Fixed an issue in the generic VCS project helper. 5_1_x

Tue, 03 May 2011 19:35:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 03 May 2011 19:35:32 +0200
branch
5_1_x
changeset 1013
bdf49619d9c6
parent 1004
9ff75adb6170
child 1015
994fb489795e

Fixed an issue in the generic VCS project helper.

VCS/ProjectHelper.py file | annotate | diff | comparison | revisions
--- 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