- infos = 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()"))
+ if self.pageContent.toolchainList.currentIndex != -1:
+ 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"] + "\nPath: " + infos["path"])
+ self.pageContent.infoLabel.setVisible(True)
+ self.emit(SIGNAL("completeChanged()"))