Version Control Systems eric7-maintenance

Thu, 06 Apr 2023 09:32:12 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 06 Apr 2023 09:32:12 +0200
branch
eric7-maintenance
changeset 9974
c2ae0dd2021a
parent 9968
115b0106012e
child 10004
983477114d3c

Version Control Systems
- fixed an issue triggered by loading very old project files (i.e. those containing a no longer supported programmin language like Python2)
(grafted from d537cba05d38d157fb337507cc1f3adf4fa5234c)

src/eric7/Plugins/VcsPlugins/vcsGit/ProjectBrowserHelper.py file | annotate | diff | comparison | revisions
src/eric7/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py file | annotate | diff | comparison | revisions
src/eric7/Plugins/VcsPlugins/vcsPySvn/ProjectBrowserHelper.py file | annotate | diff | comparison | revisions
src/eric7/Plugins/VcsPlugins/vcsSubversion/ProjectBrowserHelper.py file | annotate | diff | comparison | revisions
--- a/src/eric7/Plugins/VcsPlugins/vcsGit/ProjectBrowserHelper.py	Tue Apr 04 14:04:59 2023 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsGit/ProjectBrowserHelper.py	Thu Apr 06 09:32:12 2023 +0200
@@ -423,6 +423,9 @@
 
         @param mainMenu reference to the menu to be amended
         """
+        if mainMenu is None:
+            return
+
         menu = QMenu(self.tr("Version Control"))
 
         act = menu.addAction(
--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py	Tue Apr 04 14:04:59 2023 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py	Thu Apr 06 09:32:12 2023 +0200
@@ -529,6 +529,9 @@
 
         @param mainMenu reference to the menu to be amended
         """
+        if mainMenu is None:
+            return
+
         menu = QMenu(self.tr("Version Control"))
 
         act = menu.addAction(
--- a/src/eric7/Plugins/VcsPlugins/vcsPySvn/ProjectBrowserHelper.py	Tue Apr 04 14:04:59 2023 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsPySvn/ProjectBrowserHelper.py	Thu Apr 06 09:32:12 2023 +0200
@@ -543,6 +543,9 @@
 
         @param mainMenu reference to the menu to be amended
         """
+        if mainMenu is None:
+            return
+
         menu = QMenu(self.tr("Version Control"))
 
         act = menu.addAction(
--- a/src/eric7/Plugins/VcsPlugins/vcsSubversion/ProjectBrowserHelper.py	Tue Apr 04 14:04:59 2023 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsSubversion/ProjectBrowserHelper.py	Thu Apr 06 09:32:12 2023 +0200
@@ -541,6 +541,9 @@
 
         @param mainMenu reference to the menu to be amended
         """
+        if mainMenu is None:
+            return
+
         menu = QMenu(self.tr("Version Control"))
 
         act = menu.addAction(

eric ide

mercurial