X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBVersionPage.py;h=680577c53f245e86ea7cae1509a38f727428b392;hb=7bd424107eb3b53fb9f055f2d7409ea4f0991130;hp=d11d1ff8b219d808e9839ce3347376f95e427d84;hpb=02812c751cc3ca9dfba39748d3ddca22f5704f1a;p=bertos.git diff --git a/wizard/BVersionPage.py b/wizard/BVersionPage.py index d11d1ff8..680577c5 100644 --- a/wizard/BVersionPage.py +++ b/wizard/BVersionPage.py @@ -48,7 +48,8 @@ class BVersionPage(BWizardPage): to use. This page show some pieces of information about the version. """ - def __init__(self): + 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")) @@ -64,10 +65,18 @@ class BVersionPage(BWizardPage): # Remove the trailing slash if sources_path.endswith(os.sep): sources_path = sources_path[:-1] - self.setProjectInfo("SOURCES_PATH", sources_path) + self.setProjectInfo("BERTOS_PATH", sources_path) 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) #### @@ -187,7 +196,7 @@ class BVersionPage(BWizardPage): import winreg_importer versions |= set([os.path.normpath(dir) for dir in winreg_importer.getBertosDirs()]) versions |= set([os.path.normpath(dir) for dir in self.versions()]) - selected = self.projectInfo("SOURCES_PATH") + selected = self.projectInfo("BERTOS_PATH") for directory in versions: item = self.insertListElement(directory) if selected and selected == directory: