Fixed bugs in the old XML project file reader and the handling of a project misread. eric7

Mon, 19 Dec 2022 17:50:02 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 19 Dec 2022 17:50:02 +0100
branch
eric7
changeset 9626
5bb5c85d71c3
parent 9625
2c760cdc6b64
child 9627
4e926eb7e148

Fixed bugs in the old XML project file reader and the handling of a project misread.

src/eric7/EricXML/ProjectReader.py file | annotate | diff | comparison | revisions
src/eric7/Project/Project.py file | annotate | diff | comparison | revisions
--- a/src/eric7/EricXML/ProjectReader.py	Mon Dec 19 14:09:57 2022 +0100
+++ b/src/eric7/EricXML/ProjectReader.py	Mon Dec 19 17:50:02 2022 +0100
@@ -38,7 +38,10 @@
         """
         Public method to read and parse the XML document.
         """
-        fileCategoryTags = [s.capitalize() for s in self.project.getFileCategories()]
+        fileCategoryTags = [
+            s.capitalize() for s in self.project.getFileCategories()
+        ] + ["Interfaces", "Protocols"]
+        # The XML project files always included these.
 
         while not self.atEnd():
             self.readNext()
--- a/src/eric7/Project/Project.py	Mon Dec 19 14:09:57 2022 +0100
+++ b/src/eric7/Project/Project.py	Mon Dec 19 17:50:02 2022 +0100
@@ -3280,6 +3280,8 @@
 
                 # start the VCS monitor thread
                 self.__vcsConnectStatusMonitor()
+            else:
+                self.__initData()  # delete all invalid data read
 
     def reopenProject(self):
         """

eric ide

mercurial