Change the visualization of the valid gcc
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 9 Jan 2009 10:45:03 +0000 (10:45 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 9 Jan 2009 10:45:03 +0000 (10:45 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2148 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BToolchainPage.py

index 9859355c50d16e26cac455dc875ff546c84bce5c..d9ea7687da2f0b27c9918ff00558b468c1db6824 100644 (file)
@@ -75,7 +75,7 @@ class BToolchainPage(BWizardPage):
             item.setIcon(QIcon(":/images/ok.png"))
         else:
             item.setIcon(QIcon(":/images/warning.png"))
-        item.setText(infos["version"] + " " + infos["target"])
+        item.setText("GCC " + infos["version"] + " " + infos["target"])
     
     def _invalidItem(self, index):
         item = self.pageContent.toolchainList.item(index)
@@ -113,7 +113,7 @@ class BToolchainPage(BWizardPage):
             if self._validationProcess.waitForFinished(200):
                 description = str(self._validationProcess.readAllStandardError())
                 infos = bertos_utils.getToolchainInfo(description)
-                if len(infos.keys()) == 4:
+                if len(infos.keys()) >= 4:
                     self._validItem(i, infos)
                 else:
                     self._invalidItem(i)