From fbf62c0ec1a7b207919a77ee953a7d3f6ef249b4 Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 10 Apr 2009 09:05:12 +0000 Subject: [PATCH] Add a reset method git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2476 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BVersionPage.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wizard/BVersionPage.py b/wizard/BVersionPage.py index 6a7fbf63..fc989a73 100644 --- a/wizard/BVersionPage.py +++ b/wizard/BVersionPage.py @@ -62,6 +62,7 @@ class BVersionPage(BWizardPage): """ Overload of the BWizardPage reloadData method. """ + self.resetVersionList() self.pageContent.versionList.setCurrentRow(-1) self.fillVersionList() @@ -118,7 +119,13 @@ class BVersionPage(BWizardPage): versions = self.versions() versions.remove(directory) self.setVersions(versions) - + + def resetVersionList(self): + """ + Remove all the version entries from the list. + """ + self.pageContent.versionList.clear() + def insertListElement(self, directory): """ Inserts the given directory in the version list and returns the -- 2.25.1