X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=inline;f=wizard%2FBToolchainPage.py;h=094ff6015a14008a4408058cc1ed634defb8f7c2;hb=b0882263114dd5cc268ce701d5e48cc94ee9bf79;hp=785db3889aaab1cd0bc40d24dfa7fd2f8f6c626b;hpb=3583bfc76f7ff08915a8ecd23402e5f522e602bd;p=bertos.git diff --git a/wizard/BToolchainPage.py b/wizard/BToolchainPage.py index 785db388..094ff601 100644 --- a/wizard/BToolchainPage.py +++ b/wizard/BToolchainPage.py @@ -28,7 +28,6 @@ # # Copyright 2008 Develer S.r.l. (http://www.develer.com/) # -# $Id$ # # Author: Lorenzo Berni # @@ -107,11 +106,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]) ####