Add the store of the project info
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 18 Dec 2008 11:45:41 +0000 (11:45 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 18 Dec 2008 11:45:41 +0000 (11:45 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2072 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BVersionPage.py

index f5e9099d5a1cd53609700a4e489242d0f965b77e..b9d42bc18defcdb17d86fd6d606eb19faf452a57 100644 (file)
@@ -59,7 +59,11 @@ class BVersionPage(BWizardPage):
             self._insertListElement(directory.toString())
 
     def isComplete(self):
-        return self.pageContent.versionList.currentRow() != -1
+        if self.pageContent.versionList.currentRow() != -1:
+            self._projectInfoStore("SOURCES_PATH", self.pageContent.versionList.currentItem().data(Qt.UserRole).toString())
+            return True
+        else:
+            return False
     
     def addVersion(self):
         directory = QFileDialog.getExistingDirectory(self, self.tr("Choose a directory"), "", QFileDialog.ShowDirsOnly | QFileDialog.DontResolveSymlinks)