- filename = QFileDialog.getSaveFileName(self, self.tr("Destination directory"), "", "", "", QFileDialog.ShowDirsOnly)
- if not filename.isEmpty():
- self.pageContent.newDescription.setText("(\"" + filename + "\")")
- self.pageContent.newDescription.setVisible(True)
- # TODO: It's better to create it at the end of the wizard...
- bertos_utils.createBertosProject(filename)
- self.emit(SIGNAL("completeChanged()"))
- else:
- self.pageContent.newDescription.setText("")
- self.pageContent.newDescription.setVisible(False)
- self.pageContent.newButton.setChecked(False)