Add the conversion QVariant -> unicode for the needed['TOOLCHAIN']
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 12 Jan 2009 19:34:25 +0000 (19:34 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 12 Jan 2009 19:34:25 +0000 (19:34 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2162 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BToolchainPage.py

index 164f132432121d4d997a7b104c192f80eb319dd9..6b39ade822cdc4539a7c15ce4c2a5e1526ade410 100644 (file)
@@ -77,7 +77,7 @@ class BToolchainPage(BWizardPage):
     def _validItem(self, index, infos):
         item = self.pageContent.toolchainList.item(index)
         needed = self._projectInfoRetrieve("CPU_INFOS")
-        if infos["target"].find(needed["TOOLCHAIN"]) != -1:
+        if infos["target"].find(qvariant_converter.getString(needed["TOOLCHAIN"])) != -1:
             item.setIcon(QIcon(":/images/ok.png"))
         else:
             item.setIcon(QIcon(":/images/warning.png"))