Add new parameter to reloadData method (an integer containing the id of the previous...
[bertos.git] / wizard / BToolchainPage.py
index 65505fb4310089f9be3ba307046a19bd50f41fd3..785db3889aaab1cd0bc40d24dfa7fd2f8f6c626b 100644 (file)
@@ -103,7 +103,7 @@ class BToolchainPage(BWizardPage):
         self.connect(self.pageContent.searchButton, SIGNAL("clicked()"), self.searchToolchain)
         self.connect(self.pageContent.checkButton, SIGNAL("clicked()"), self.validateAllToolchains)
 
-    def reloadData(self):
+    def reloadData(self, previous_id=None):
         """
         Overload of the BWizard reloadData method.
         """
@@ -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])
 
     ####