X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBCpuPage.py;h=2d616d53fa900d767255c1ea71b4de36338de4a3;hb=9efa7a70c29cd4e8cd2f114c6aae748f82d8d5ef;hp=6494e34d89710fa547bb2f6f94c8308f9dca76fc;hpb=3650787f38f0edaf49ae1980b5373e43c8e1a4c6;p=bertos.git diff --git a/wizard/BCpuPage.py b/wizard/BCpuPage.py index 6494e34d..2d616d53 100644 --- a/wizard/BCpuPage.py +++ b/wizard/BCpuPage.py @@ -40,6 +40,7 @@ class BCpuPage(BWizardPage): self.pageContent.cpuList.setCurrentItem(elements[0]) def _setupUi(self): + self.pageContent.cpuList.setSortingEnabled(True) self.pageContent.descriptionLabel.setVisible(False) self.pageContent.descriptionLabel.setText("") @@ -53,7 +54,7 @@ class BCpuPage(BWizardPage): def isComplete(self): if self.pageContent.cpuList.currentRow() != -1: - self._projectInfoStore("CPU_INFOS", qvariant_converter.getStringDict(self.pageContent.cpuList.currentItem().data(Qt.UserRole))) + self._projectInfoStore("CPU_INFOS", qvariant_converter.getDict(self.pageContent.cpuList.currentItem().data(Qt.UserRole))) return True else: return False