Remember the previously selected toolchain when coming back from the module page.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 8 Jun 2010 12:50:48 +0000 (12:50 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 8 Jun 2010 12:50:48 +0000 (12:50 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3901 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BToolchainPage.py

index 65505fb4310089f9be3ba307046a19bd50f41fd3..ff1891ff70edb15244effd52a3d38069b37f3c3f 100644 (file)
@@ -111,7 +111,7 @@ class BToolchainPage(BWizardPage):
         self.setupUi()
         self._populateToolchainList()
         if len(self._valid_items) >= 1:
-            self.pageContent.toolchainList.setCurrentItem(self._valid_items[0])
+            self.pageContent.toolchainList.setCurrentItem(self.pageContent.toolchainList.currentItem() or self._valid_items[0])
 
     ####