From 680daeaa37670d2ee2c5fcd763c2280c59a2a0d7 Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 23 Apr 2010 09:16:03 +0000 Subject: [PATCH] Add information to project. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3499 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BFolderPage.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/wizard/BFolderPage.py b/wizard/BFolderPage.py index 06191f6b..569ebd94 100644 --- a/wizard/BFolderPage.py +++ b/wizard/BFolderPage.py @@ -66,6 +66,7 @@ class BFolderPage(BWizardPage): self.setProjectInfo("PROJECT_PATH", unicode(self.pageContent.projectPath.text())) self.setProjectInfo("PROJECT_NAME", os.path.basename(unicode(self.pageContent.projectPath.text()))) self.setProjectInfo("ROUTE", self.next_page) + self.setProjectInfo("PROJECT_FROM_PRESET", self.from_preset) return True else: return False @@ -132,10 +133,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): """ -- 2.25.1