From: duplo Date: Thu, 23 Sep 2010 12:29:34 +0000 (+0000) Subject: Fix #170. Now, the first time you arrive at Board Page, the Wizard X-Git-Tag: 2.6.0~129 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=d683320bb0091ff9ddd3d29efc89c69acdc4d59e;p=bertos.git 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 --- 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) ####