Attempt to fix ToolchainPage reloadData information.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 8 Jun 2010 14:01:40 +0000 (14:01 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 8 Jun 2010 14:01:40 +0000 (14:01 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3904 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BToolchainPage.py

index 785db3889aaab1cd0bc40d24dfa7fd2f8f6c626b..b516943a49b4c71eab2d3ad515290ee0c24c19ff 100644 (file)
@@ -107,11 +107,12 @@ class BToolchainPage(BWizardPage):
         """
         Overload of the BWizard reloadData method.
         """
-        self._clearList()
-        self.setupUi()
-        self._populateToolchainList()
-        if len(self._valid_items) >= 1:
-            self.pageContent.toolchainList.setCurrentItem(self.pageContent.toolchainList.currentItem() or self._valid_items[0])
+        if previous_id is None or previous_id < self.wizard().currentId():
+            self._clearList()
+            self.setupUi()
+            self._populateToolchainList()
+            if len(self._valid_items) >= 1:
+                self.pageContent.toolchainList.setCurrentItem(self.pageContent.toolchainList.currentItem() or self._valid_items[0])
 
     ####