Check for information about toolchain
[bertos.git] / wizard / BCreationPage.py
index e865a2cc2d89c757a7b41185f15c33a679a7dc5c..e40db963a2aacb71ffa5cb841f0a8030263eb079 100644 (file)
@@ -4,7 +4,7 @@
 # Copyright 2009 Develer S.r.l. (http://www.develer.com/)
 # All rights reserved.
 #
-# $Id:$
+# $Id$
 #
 # Author: Lorenzo Berni <duplo@develer.com>
 #
@@ -52,8 +52,13 @@ class BCreationPage(BWizardPage):
         toolchain_info = self.projectInfo("TOOLCHAIN")
         if "target" in toolchain_info.keys():
             toolchain_target = QTreeWidgetItem(toolchain_title, QStringList([self.tr("target: " + toolchain_info["target"])]))
+        version = ""
         if "version" in toolchain_info.keys():
-            toolchain_target = QTreeWidgetItem(toolchain_title, QStringList([self.tr("version: " + "GCC " + toolchain_info["version"] + " (" + toolchain_info["build"] + ")")]))
+            version += "version: " + "GCC " + toolchain_info["version"] + " "
+        if "build" in toolchain_info.keys():
+            version += "(" + toolchain_info["build"] + ")"
+        if "version" in toolchain_info.keys():
+            toolchain_target = QTreeWidgetItem(toolchain_title, QStringList([version]))
         toolchain_path = QTreeWidgetItem(toolchain_title, QStringList([self.tr("path: " + os.path.normpath(toolchain_info["path"]))]))
         top_level.append(toolchain_title)
         module_title = QTreeWidgetItem(QStringList([self.tr("Modules")]))