Fix default value for codelite files checkbox.
[bertos.git] / wizard / BToolchainPage.py
index 785db3889aaab1cd0bc40d24dfa7fd2f8f6c626b..914ebf8083be9ce2a36ba7cc08d703893c9fbd8c 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._valid_items[0])
 
     ####