X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBVersionPage.py;h=8842289d9aec4bb5cb4199f44946a9df02df266b;hb=056aea92013907f6485a499b511cc0ef81c38a4d;hp=d11d1ff8b219d808e9839ce3347376f95e427d84;hpb=02812c751cc3ca9dfba39748d3ddca22f5704f1a;p=bertos.git diff --git a/wizard/BVersionPage.py b/wizard/BVersionPage.py index d11d1ff8..8842289d 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")) @@ -183,6 +184,8 @@ class BVersionPage(BWizardPage): Fills the version list with all the BeRTOS versions founded in the QSettings. """ versions = set([]) + if self._edit: + versions.add(self.projectInfo("SOURCES_PATH")) if os.name == "nt": import winreg_importer versions |= set([os.path.normpath(dir) for dir in winreg_importer.getBertosDirs()])