Fix #170. Now, the first time you arrive at Board Page, the Wizard
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 23 Sep 2010 12:29:34 +0000 (12:29 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 23 Sep 2010 12:29:34 +0000 (12:29 +0000)
automatically select the first one.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4272 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BBoardPage.py

index cee61a5cae6f8dde6eb28f92a0bf126a3fd10f86..03f96048202ba2a00a7a0458930c48aaa64c0dff 100644 (file)
@@ -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)
 
     ####