[vlmc-devel] [PATCH 3/3] Compose projectFilePath in the wizard.

Yikai Lu luyikei.qmltu at gmail.com
Sat Mar 12 07:28:51 CET 2016


---
 src/Gui/wizard/ProjectWizard.cpp | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/Gui/wizard/ProjectWizard.cpp b/src/Gui/wizard/ProjectWizard.cpp
index 79b436f..35ee25d 100644
--- a/src/Gui/wizard/ProjectWizard.cpp
+++ b/src/Gui/wizard/ProjectWizard.cpp
@@ -99,7 +99,13 @@ ProjectWizard::accept()
     //If he was creating a project, the current page will be the video/audio settings one.
     if ( currentId() == Page_Video )
     {
-        Core::getInstance()->newProject( field( "projectName" ).toString(), field( "projectPath" ).toString() );
+        Core::getInstance()->newProject
+                    (
+                    field( "projectName" ).toString(),
+                    QString( "%1/%2.vlmc" )
+                        .arg( field( "projectPath" ).toString() )
+                        .arg( QString( field( "projectName" ).toString() ).replace( " ", "_" ) )
+                    );
         Settings* projectPreferences = Core::getInstance()->project()->settings();
 
         projectPreferences->setValue( "video/VLMCOutputFPS", field( "fps" ) );
-- 
1.9.1



More information about the Vlmc-devel mailing list