Commit 24a732f5 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Propagate the VLMCWorkspace type change.

parent 60ce98a1
......@@ -97,7 +97,7 @@ GUIProjectManager::createNewProjectFile( bool saveAs )
{
QString outputFileName =
QFileDialog::getSaveFileName( NULL, "Enter the output file name",
VLMC_PROJECT_GET_STRING( "general/VLMCWorkspace" ),
VLMC_GET_STRING( "general/VLMCWorkspace" ),
"VLMC project file(*.vlmc)" );
if ( outputFileName.length() == 0 )
return false;
......@@ -259,7 +259,7 @@ GUIProjectManager::loadProject()
{
QString fileName =
QFileDialog::getOpenFileName( NULL, "Enter the output file name",
VLMC_PROJECT_GET_STRING( "general/VLMCWorkspace" ),
VLMC_GET_STRING( "general/VLMCWorkspace" ),
"VLMC project file(*.vlmc)" );
if ( fileName.length() <= 0 ) //If the user canceled.
return ;
......
......@@ -76,7 +76,7 @@ void GeneralPage::initializePage()
ui.lineEditName->setText( projectName );
//fetching the global workspace path
QString workspacePath = VLMC_PROJECT_GET_STRING( "general/VLMCWorkspace" );
QString workspacePath = VLMC_GET_STRING( "general/VLMCWorkspace" );
ui.lineEditWorkspace->setText( workspacePath );
updateProjectLocation();
......@@ -109,7 +109,7 @@ bool GeneralPage::validatePage()
QVariant projectName( ui.lineEditName->text() );
sManager->setValue( "general/ProjectName", projectName, SettingsManager::Project );
sManager->setValue( "general/VLMCWorkspace", ui.lineEditWorkspace->text(), SettingsManager::Project );
sManager->setValue( "general/VLMCWorkspace", ui.lineEditWorkspace->text(), SettingsManager::Vlmc );
//Create the project directory in the workspace dir.
QString projectPath = ui.lineEditName->text().replace( ' ', '_' );
......
......@@ -134,7 +134,7 @@ void WelcomePage::loadProject()
{
QString projectPath =
QFileDialog::getOpenFileName( NULL, "Enter the output file name",
VLMC_PROJECT_GET_STRING( "general/VLMCWorkspace" ),
VLMC_GET_STRING( "general/VLMCWorkspace" ),
"VLMC project file(*.vlmc)" );
if ( projectPath.isEmpty() ) return;
......
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