Add exception handling for parsing error within the preset route.
[bertos.git] / wizard / BCreationPage.py
index d8172155dca5fb9a2a2e62fa304aafdad803e313..dc200e8f8ef6b676550126fe9db86c42df37eea6 100644 (file)
@@ -43,7 +43,7 @@ import bertos_utils
 from const import *
 
 class BCreationPage(BWizardPage):
-    
+
     def __init__(self):
         BWizardPage.__init__(self, UI_LOCATION + "/project_creation.ui")
        self.setTitle(self.tr("Project summary"))
@@ -54,16 +54,16 @@ class BCreationPage(BWizardPage):
 
     def connectSignals(self):
         self.connect(self.pageContent.codeliteCheckBox, SIGNAL("stateChanged(int)"), self.codelitePluginChanged)
-    
+
     def setupUi(self):
         summary = self.pageContent.summaryTree
         summary.setHeaderHidden(True)
         summary.setColumnCount(1)
-        self.pageContent.codeliteCheckBox.setChecked("codelite" not in self.plugins())
+        self.pageContent.codeliteCheckBox.setChecked(False)
         self.codelitePluginChanged()
         self.setButtonText(QWizard.NextButton, self.tr("Create"))
-    
-    def reloadData(self):
+
+    def reloadData(self, previous_id=None):
         self.setupUi()
         self.pageContent.summaryTree.clear()
         top_level = []
@@ -115,7 +115,7 @@ class BCreationPage(BWizardPage):
         self.pageContent.summaryTree.insertTopLevelItems(0, top_level)
         for item in top_level:
             self.pageContent.summaryTree.expandItem(item)
-    
+
     ####
 
     ## Slots ##
@@ -126,5 +126,6 @@ class BCreationPage(BWizardPage):
         else:
             output= []
         self.setProjectInfo("OUTPUT", output)
+        self.setPlugins(output)
 
-    ####
\ No newline at end of file
+    ####