X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBFolderPage.py;h=dc53d10c0d0f6c5e697b95835bf42228fd7d4fdf;hb=1e209f4e383e78f1c06810d95b175c591e40e1e2;hp=4d8860d5facb28e67f3a199a3f0b38261a1aacb0;hpb=a7b06a2869370d63b8d1c5ca85739ecfb18ead9f;p=bertos.git diff --git a/wizard/BFolderPage.py b/wizard/BFolderPage.py index 4d8860d5..dc53d10c 100644 --- a/wizard/BFolderPage.py +++ b/wizard/BFolderPage.py @@ -42,17 +42,22 @@ class BFolderPage(BWizardPage): self._setProjectPath() def _setProjectPath(self): - if self._destinationFolder <> "" and self._projectName <> "": + if self._destinationFolder != "" and self._projectName <> "": if not self._destinationFolder.endswith(os.sep): self._destinationFolder += os.sep - self.pageContent.projectPath.setText(self._destinationFolder + self._projectName + "/") + self.pageContent.projectPath.setText(self._destinationFolder + self._projectName) else: self.pageContent.projectPath.setText("None") self.emit(SIGNAL("completeChanged()")) def _selectDirectory(self): - directory = QFileDialog.getExistingDirectory(self, self.tr("Open Directory"), "", QFileDialog.ShowDirsOnly) - self.pageContent.directoryEdit.setText(directory) + directory = unicode(QFileDialog.getExistingDirectory(self, self.tr("Open Directory"), "", QFileDialog.ShowDirsOnly)) + if len(directory) == "": + self.pageContent.directoryEdit.setText(directory) def isComplete(self): - return self.pageContent.projectPath.text() != "None" \ No newline at end of file + if self.pageContent.projectPath.text() != "None": + self._projectInfoStore("PROJECT_PATH", unicode(self.pageContent.projectPath.text())) + return True + else: + return False \ No newline at end of file