[vlmc-devel] Compose projectFilePath in the wizard.
Yikai Lu
git at videolan.org
Mon Mar 14 21:31:37 CET 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Mar 12 15:28:51 2016 +0900| [00e8af9639816afbd0ff0265f9d797d74bd97b95] | committer: Hugo Beauzée-Luyssen
Compose projectFilePath in the wizard.
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> https://code.videolan.org/videolan/vlmc/commit/00e8af9639816afbd0ff0265f9d797d74bd97b95
---
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" ) );
More information about the Vlmc-devel
mailing list