Re-add a wrongly reverted commit.
[bertos.git] / 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])
 
     ####