From cb1e0e932dd0bd84edb51dafe4377ff4d3545514 Mon Sep 17 00:00:00 2001 From: duplo Date: Tue, 31 Mar 2009 09:39:44 +0000 Subject: [PATCH] Remember the selected toolchain also when returning back git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2449 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BToolchainPage.py | 3 +++ 1 file changed, 3 insertions(+) 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)) -- 2.25.1