From 634679fc31d2b6920c5d03494482e2d3fd7f772f Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 7 Sep 2009 17:11:27 +0000 Subject: [PATCH] Fix the bug related to the version list. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2889 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BVersionPage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wizard/BVersionPage.py b/wizard/BVersionPage.py index c12bd6b7..beda4e95 100644 --- a/wizard/BVersionPage.py +++ b/wizard/BVersionPage.py @@ -240,7 +240,10 @@ class BVersionPage(BWizardPage): Return the path of the selected version. """ current = self.currentItem() - return qvariant_converter.getString(current.data(Qt.UserRole)) + if current: + return qvariant_converter.getString(current.data(Qt.UserRole)) + else: + return None def isDefaultVersion(self, version): """ -- 2.25.1