From f17105e9cf0514f9204e4c3e3eef07d85742aea5 Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 17 Apr 2009 10:32:17 +0000 Subject: [PATCH] Correct a bug of the stored value git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2534 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BCpuPage.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wizard/BCpuPage.py b/wizard/BCpuPage.py index e490acab..d6b3616b 100644 --- a/wizard/BCpuPage.py +++ b/wizard/BCpuPage.py @@ -84,9 +84,13 @@ class BCpuPage(BWizardPage): bertos_utils.loadSourceTree(self.project()) self.populateCpuList() cpu_name = self.projectInfo("CPU_NAME") + selected_freq = self.projectInfo("SELECTED_FREQ") self.setupUi() if not cpu_name is None: self.selectItem(cpu_name) + if not selected_freq is None: + self.setFrequency(selected_freq) + self.freq_modified = True QApplication.instance().restoreOverrideCursor() self.emit(SIGNAL("completeChanged()")) @@ -143,4 +147,7 @@ class BCpuPage(BWizardPage): """ elements = self.pageContent.cpuList.findItems(cpu, Qt.MatchCaseSensitive) if len(elements) == 1: - self.pageContent.cpuList.setCurrentItem(elements[0]) \ No newline at end of file + self.pageContent.cpuList.setCurrentItem(elements[0]) + + def setFrequency(self, frequency): + self.pageContent.frequencySpinBox.setValue(long(frequency)) \ No newline at end of file -- 2.25.1