Commit 655a8451 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

ProjectWizard: Save the last used VLMC workspace

Also, try to explain the difference between project workspace and vlmc
workspace
parent d8611d1b
......@@ -49,7 +49,8 @@ GeneralPage::GeneralPage( QWidget *parent ) :
this, SLOT( updateProjectLocation() ) );
registerField( "projectName*", ui.lineEditName );
registerField( "workspace*", ui.lineEditProjectLocation );
registerField( "projectPath*", ui.lineEditProjectLocation );
registerField( "workspace*", ui.lineEditWorkspace );
}
void
......
......@@ -101,7 +101,10 @@ ProjectWizard::accept()
{
SettingsManager *sManager = SettingsManager::getInstance();
GUIProjectManager::getInstance()->newProject( field( "projectName" ).toString(), field( "workspace" ).toString() );
sManager->setValue( "general/Workspace", field( "workspace" ), SettingsManager::Project );
//Save the project workspace
sManager->setValue( "general/Workspace", field( "projectPath" ), SettingsManager::Project );
//And the default vlmc workspace
sManager->setValue( "general/DefaultProjectLocation", field( "workspace" ), SettingsManager::Vlmc );
sManager->setValue( "video/VLMCOutputFPS", field( "fps" ), SettingsManager::Project );
sManager->setValue( "video/VideoProjectHeight", field( "height" ), SettingsManager::Project );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment