From: duplo Date: Tue, 31 Mar 2009 09:39:44 +0000 (+0000) Subject: Remember the selected toolchain also when returning back X-Git-Tag: 2.1.0~233 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=cb1e0e932dd0bd84edb51dafe4377ff4d3545514;p=bertos.git Remember the selected toolchain also when returning back git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2449 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BToolchainPage.py b/wizard/BToolchainPage.py index 18935ec5..7cd722a1 100644 --- a/wizard/BToolchainPage.py +++ b/wizard/BToolchainPage.py @@ -34,10 +34,13 @@ class BToolchainPage(BWizardPage): def _populateToolchainList(self): toolchains = self.toolchains() + sel_toolchain = self._projectInfoRetrieve("TOOLCHAIN") for key, value in toolchains.items(): item = QListWidgetItem(key) item.setData(Qt.UserRole, qvariant_converter.convertStringDict({"path": key})) self.pageContent.toolchainList.addItem(item) + if sel_toolchain is not None and sel_toolchain["path"] == key: + self.pageContent.toolchainList.setCurrentItem(item) if value: self.validateToolchain(self.pageContent.toolchainList.row(item))