From fa2df519d5976cfffc2364bb9b86e68eef24a6e9 Mon Sep 17 00:00:00 2001 From: duplo Date: Thu, 23 Jul 2009 13:53:01 +0000 Subject: [PATCH] Use the version name instead of the pathw git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2764 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BEditingDialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.25.1