In editing mode when the user selects a project that was created with older versions...
[bertos.git] / wizard / BFolderPage.py
index 06191f6be8af9be12fd4debfafee6018760181ad..3b3bce8956ba0cc523191dbfcce1dd14ad9711d4 100644 (file)
@@ -65,7 +65,9 @@ class BFolderPage(BWizardPage):
         if self.pageContent.projectPath.text() != "None":
             self.setProjectInfo("PROJECT_PATH", unicode(self.pageContent.projectPath.text()))
             self.setProjectInfo("PROJECT_NAME", os.path.basename(unicode(self.pageContent.projectPath.text())))
+            self.setProjectInfo("PROJECT_SRC_PATH", os.path.join(self.projectInfo("PROJECT_PATH"), self.projectInfo("PROJECT_NAME")))
             self.setProjectInfo("ROUTE", self.next_page)
+            self.setProjectInfo("PROJECT_FROM_PRESET", self.from_preset)
             return True
         else:
             return False
@@ -132,10 +134,14 @@ class BFolderPage(BWizardPage):
         """
         Contains the next page class.
         """
-        if self.pageContent.customButton.isChecked():
-            return BCpuPage
-        else:
+        if self.from_preset:
             return BBoardPage
+        else:
+            return BCpuPage
+
+    @property
+    def from_preset(self):
+        return self.pageContent.predefinedButton.isChecked()
     
     def initializeAttributes(self):
         """