From bc8b61afa24c8ccecb748ba1aebc5c45ff70cc17 Mon Sep 17 00:00:00 2001 From: duplo Date: Tue, 8 Jun 2010 14:01:40 +0000 Subject: [PATCH] Attempt to fix ToolchainPage reloadData information. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3904 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BToolchainPage.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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]) #### -- 2.25.1