From: duplo Date: Tue, 24 Feb 2009 09:45:31 +0000 (+0000) Subject: If the target of a toolchain is not defined the wizard use the warning icon X-Git-Tag: 2.1.0~300 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=28200763bd0b90237ce7bc2133857f5e3148c044;p=bertos.git If the target of a toolchain is not defined the wizard use the warning icon git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2382 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BToolchainPage.py b/wizard/BToolchainPage.py index 778a8937..100abb56 100644 --- a/wizard/BToolchainPage.py +++ b/wizard/BToolchainPage.py @@ -79,7 +79,7 @@ class BToolchainPage(BWizardPage): newData.update(infos) item.setData(Qt.UserRole, qvariant_converter.convertStringDict(newData)) needed = self._projectInfoRetrieve("CPU_INFOS") - if infos["target"].find(needed["TOOLCHAIN"]) != -1: + if "target" in infos.keys() and infos["target"].find(needed["TOOLCHAIN"]) != -1: item.setIcon(QIcon(":/images/ok.png")) else: item.setIcon(QIcon(":/images/warning.png"))