From: (no author) <(no author)@38d2e660-2303-0410-9eaa-f027e97ec537> Date: Mon, 13 Jul 2009 12:33:23 +0000 (+0000) Subject: Fix the bug related to the empty version list X-Git-Tag: 2.2.0~212 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=cff0157035b141f2a6484eaf077c6dfbc45d6b50;p=bertos.git 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 --- 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: