From 034a9f4151447513f753489f008f5de0c5b36039 Mon Sep 17 00:00:00 2001 From: duplo Date: Tue, 20 Apr 2010 10:34:23 +0000 Subject: [PATCH] Save the project preset path into the project. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3476 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BBoardPage.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wizard/BBoardPage.py b/wizard/BBoardPage.py index 35fc9bc4..e565eb82 100644 --- a/wizard/BBoardPage.py +++ b/wizard/BBoardPage.py @@ -66,9 +66,14 @@ class BBoardPage(BWizardPage): Overload of the QWizardPage isComplete method. """ if self.selected: - _type = qvariant_converter.getDict(self.selected.data(0, Qt.UserRole))["type"] + _info_dict = qvariant_converter.getDict(self.selected.data(0, Qt.UserRole)) + _type = _info_dict["type"] type = qvariant_converter.getString(_type) - return type == "project" + if type == "project": + self.setProjectInfo("PROJECT_PRESET", qvariant_converter.getString(_info_dict["path"])) + return True + else: + return False else: return False -- 2.25.1