Save the project preset path into the project.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 Apr 2010 10:34:23 +0000 (10:34 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 20 Apr 2010 10:34:23 +0000 (10:34 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3476 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BBoardPage.py

index 35fc9bc467050a892ecc1c8b77805c23e055dc38..e565eb82eca57af2d7d949c0dcfcffb0580fd34b 100644 (file)
@@ -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