From d683320bb0091ff9ddd3d29efc89c69acdc4d59e Mon Sep 17 00:00:00 2001 From: duplo Date: Thu, 23 Sep 2010 12:29:34 +0000 Subject: [PATCH] Fix #170. Now, the first time you arrive at Board Page, the Wizard automatically select the first one. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4272 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BBoardPage.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wizard/BBoardPage.py b/wizard/BBoardPage.py index cee61a5c..03f96048 100644 --- a/wizard/BBoardPage.py +++ b/wizard/BBoardPage.py @@ -106,6 +106,10 @@ class BBoardPage(BWizardPage): preset_list = preset_list["children"] preset_list = sorted(preset_list.values(), _cmp) self.setItems(preset_list) + project_from_preset = self.projectInfo("PROJECT_FROM_PRESET") + project_board = self.projectInfo("PROJECT_BOARD") + if not (project_from_preset and project_board): + self.pageContent.boardList.setCurrentRow(0) #### -- 2.25.1