Use the version name instead of the pathw
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 23 Jul 2009 13:53:01 +0000 (13:53 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 23 Jul 2009 13:53:01 +0000 (13:53 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2764 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BEditingDialog.py

index 6c714a5027654b5f577f3d9f8f2bd8774322194f..121a4ed2cbba1e218adfd8b025b3129ded4e575f 100644 (file)
@@ -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)