If the target of a toolchain is not defined the wizard use the warning icon
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 24 Feb 2009 09:45:31 +0000 (09:45 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 24 Feb 2009 09:45:31 +0000 (09:45 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2382 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BToolchainPage.py

index 778a8937c0b2f9640f42f91c941fb0dd32ec2333..100abb5666488b290da0f2e3c8d3085f21e0ace5 100644 (file)
@@ -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"))