X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBToolchainPage.py;h=914ebf8083be9ce2a36ba7cc08d703893c9fbd8c;hb=2deaea82d047e5731b28b59b4652ad830b46e3fe;hp=785db3889aaab1cd0bc40d24dfa7fd2f8f6c626b;hpb=3583bfc76f7ff08915a8ecd23402e5f522e602bd;p=bertos.git diff --git a/wizard/BToolchainPage.py b/wizard/BToolchainPage.py index 785db388..914ebf80 100644 --- a/wizard/BToolchainPage.py +++ b/wizard/BToolchainPage.py @@ -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]) ####