Add a reset method
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 10 Apr 2009 09:05:12 +0000 (09:05 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 10 Apr 2009 09:05:12 +0000 (09:05 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2476 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BVersionPage.py

index 6a7fbf6309a92956eebf9429a61c45b7543b1e04..fc989a739b5a978bfe472dff402a42cc526c1355 100644 (file)
@@ -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