From cff0157035b141f2a6484eaf077c6dfbc45d6b50 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@38d2e660-2303-0410-9eaa-f027e97ec537> Date: Mon, 13 Jul 2009 12:33:23 +0000 Subject: [PATCH] Fix the bug related to the empty version list git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2756 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BVersionPage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wizard/BVersionPage.py b/wizard/BVersionPage.py index 8ce69403..ded8395e 100644 --- a/wizard/BVersionPage.py +++ b/wizard/BVersionPage.py @@ -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: -- 2.25.1