From: duplo Date: Thu, 23 Jul 2009 13:53:01 +0000 (+0000) Subject: Use the version name instead of the pathw X-Git-Tag: 2.2.0~204 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=fa2df519d5976cfffc2364bb9b86e68eef24a6e9;p=bertos.git Use the version name instead of the pathw git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2764 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BEditingDialog.py b/wizard/BEditingDialog.py index 6c714a50..121a4ed2 100644 --- a/wizard/BEditingDialog.py +++ b/wizard/BEditingDialog.py @@ -39,7 +39,7 @@ import os from PyQt4.QtCore import * from PyQt4.QtGui import * -from bertos_utils import loadBertosProject +from bertos_utils import loadBertosProject, bertosVersion import BModulePage class BEditingDialog(QDialog): @@ -87,7 +87,7 @@ class BEditingDialog(QDialog): def setupVersionMenu(self): self.version_menu = QMenu(self.tr("select BeRTOS version")) action_group = QActionGroup(self.version_menu) - for version in sorted(self.versions()): + for version in sorted([bertosVersion(v) for v in self.versions()]): action = self.version_menu.addAction(version) action_group.addAction(action) action.setCheckable(True)