Fix cpu reloadPage method
[bertos.git] / wizard / BVersionPage.py
index 680577c53f245e86ea7cae1509a38f727428b392..c65d34d026b631576ae7c54c0997a85f32520df0 100644 (file)
@@ -51,8 +51,8 @@ class BVersionPage(BWizardPage):
     def __init__(self, edit=False):
         self._edit = edit
         BWizardPage.__init__(self, UI_LOCATION + "/bertos_versions.ui")
-        self.setTitle(self.tr("Select the BeRTOS directory"))
-        self.setSubTitle(self.tr("The project created will be based on the BeRTOS version found"))
+        self.setTitle(self.tr("Select BeRTOS version"))
+        self.setSubTitle(self.tr("Your project will be created with the specified BeRTOS version"))
 
     ## Overloaded QWizardPage methods ##
     
@@ -69,14 +69,6 @@ class BVersionPage(BWizardPage):
             return True
         else:
             return False
-
-    def nextId(self):
-        """
-        Overload of the QWizard nextId method.
-        """
-        # Pick up the class stored into the project in the 'folder' step
-        page_class = self.projectInfo("ROUTE")
-        return self.wizard().pageIndex(page_class)
     
     ####
     
@@ -86,7 +78,7 @@ class BVersionPage(BWizardPage):
         """
         Overload of the BWizardPage connectSignals method.
         """
-        self.connect(self.pageContent.versionList, SIGNAL("itemSelectionChanged()"), self.rowChanged)
+        self.connect(self.pageContent.versionList, SIGNAL("currentItemChanged(QListWidgetItem *, QListWidgetItem*)"), self.rowChanged)
         self.connect(self.pageContent.addButton, SIGNAL("clicked()"), self.addVersion)
         self.connect(self.pageContent.removeButton, SIGNAL("clicked()"), self.removeVersion)
         # Fake signal connection for the update button