[vlmc-devel] commit: Wizzard: Create the project dir in the workspace ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Sun Jun 20 19:21:35 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Jun 20 18:24:56 2010 +0200| [eb7575c3fe40c225705fc1000978adebe668b8b0] | committer: Hugo Beauzée-Luyssen 

Wizzard: Create the project dir in the workspace

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=eb7575c3fe40c225705fc1000978adebe668b8b0
---

 src/Gui/wizard/GeneralPage.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/Gui/wizard/GeneralPage.cpp b/src/Gui/wizard/GeneralPage.cpp
index d327f3f..87f5d85 100644
--- a/src/Gui/wizard/GeneralPage.cpp
+++ b/src/Gui/wizard/GeneralPage.cpp
@@ -111,6 +111,12 @@ bool GeneralPage::validatePage()
     sManager->setValue( "general/ProjectName", projectName, SettingsManager::Project );
     sManager->setValue( "general/VLMCWorkspace", ui.lineEditWorkspace->text(), SettingsManager::Project );
 
+    //Create the project directory in the workspace dir.
+    QString     projectPath = ui.lineEditName->text().replace( ' ', '_' );
+    QDir        workspaceDir( ui.lineEditWorkspace->text() );
+
+    if ( workspaceDir.exists( projectPath ) == false )
+        workspaceDir.mkdir( projectPath );
     return true;
 }
 



More information about the Vlmc-devel mailing list