From: duplo Date: Mon, 12 Jan 2009 19:34:25 +0000 (+0000) Subject: Add the conversion QVariant -> unicode for the needed['TOOLCHAIN'] X-Git-Tag: 2.1.0~520 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=8db6f7d55f24f972b48a0797f0a3b289b465b943;p=bertos.git Add the conversion QVariant -> unicode for the needed['TOOLCHAIN'] git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2162 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BToolchainPage.py b/wizard/BToolchainPage.py index 164f1324..6b39ade8 100644 --- a/wizard/BToolchainPage.py +++ b/wizard/BToolchainPage.py @@ -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"))