From 8db6f7d55f24f972b48a0797f0a3b289b465b943 Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 12 Jan 2009 19:34:25 +0000 Subject: [PATCH] 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 --- wizard/BToolchainPage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) -- 2.25.1