From 28200763bd0b90237ce7bc2133857f5e3148c044 Mon Sep 17 00:00:00 2001 From: duplo Date: Tue, 24 Feb 2009 09:45:31 +0000 Subject: [PATCH] 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 --- wizard/BToolchainPage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) -- 2.25.1