From: duplo Date: Tue, 20 Apr 2010 10:34:23 +0000 (+0000) Subject: Save the project preset path into the project. X-Git-Tag: 2.5.0~432 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=034a9f4151447513f753489f008f5de0c5b36039;p=bertos.git Save the project preset path into the project. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3476 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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