X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBToolchainPage.py;h=8d4101bac8ae2f80f1f0610de9a004d4ef61fd4e;hb=b5eaec9ae59579faf3d2facea7ede3fb8ef64032;hp=a7438e6fde71ce92a77609c3185422d2b4956b90;hpb=70b47cb3d3283a208e9ac8f952d5d7a83aa140e2;p=bertos.git diff --git a/wizard/BToolchainPage.py b/wizard/BToolchainPage.py index a7438e6f..8d4101ba 100644 --- a/wizard/BToolchainPage.py +++ b/wizard/BToolchainPage.py @@ -10,6 +10,7 @@ # import os +import collections from BWizardPage import * import BToolchainSearch @@ -42,7 +43,8 @@ class BToolchainPage(BWizardPage): self.pageContent.toolchainList.clear() def _selectionChanged(self): - infos = qvariant_converter.getStringDict(self.pageContent.toolchainList.currentItem().data(Qt.UserRole)) + infos = collections.defaultdict(lambda: unicode("not defined")) + infos.update(qvariant_converter.getStringDict(self.pageContent.toolchainList.currentItem().data(Qt.UserRole))) self.pageContent.infoLabel.setText("GCC " + infos["version"] + " (" + infos["build"] + ")\nTarget: " + infos["target"] + "\nThread model: " + infos["thread"]) self.pageContent.infoLabel.setVisible(True) self.emit(SIGNAL("completeChanged()"))