83 uid = self.attribute("uid", "") |
83 uid = self.attribute("uid", "") |
84 if uid: |
84 if uid: |
85 project["uid"] = uid |
85 project["uid"] = uid |
86 else: |
86 else: |
87 # upgrade from pre 5.1 format |
87 # upgrade from pre 5.1 format |
88 from PyQt5.QtCore import QUuid |
88 from PyQt6.QtCore import QUuid |
89 project["uid"] = QUuid.createUuid().toString() |
89 project["uid"] = QUuid.createUuid().toString() |
90 |
90 |
91 while not self.atEnd(): |
91 while not self.atEnd(): |
92 self.readNext() |
92 self.readNext() |
93 if self.isEndElement() and self.name() == "Project": |
93 if self.isEndElement() and self.name() == "Project": |