Fix the bug related to the empty version list
author(no author) <(no author)@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 13 Jul 2009 12:33:23 +0000 (12:33 +0000)
committer(no author) <(no author)@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 13 Jul 2009 12:33:23 +0000 (12:33 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2756 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BVersionPage.py

index 8ce6940399f94ed0cb77cd782c0d3495f1daeaad..ded8395e7d2bced1569f85c288007116684f9ad3 100644 (file)
@@ -215,6 +215,8 @@ class BVersionPage(BWizardPage):
         latest_version_item = None
         for index in range(self.pageContent.versionList.count()):
             item = self.pageContent.versionList.item(index)
+            if not latest_version_item:
+                latest_version_item = item
             version = item.text().split(" (")[0]
             latest = latest_version_item.text().split(" (")[0]
             if version != "UNKNOWN" and version > latest: