Fix #170. Now, the first time you arrive at Board Page, the Wizard
[bertos.git] / 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)
 
     ####