From: duplo Date: Tue, 8 Jun 2010 14:01:40 +0000 (+0000) Subject: Attempt to fix ToolchainPage reloadData information. X-Git-Tag: 2.5.0~13 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=bc8b61afa24c8ccecb748ba1aebc5c45ff70cc17;p=bertos.git Attempt to fix ToolchainPage reloadData information. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3904 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BToolchainPage.py b/wizard/BToolchainPage.py index 785db388..b516943a 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.pageContent.toolchainList.currentItem() or self._valid_items[0]) ####