Commit 712d34b9 authored by Clement CHAVANCE's avatar Clement CHAVANCE
Browse files

fix compilation problems

parent e79c89c7
......@@ -42,8 +42,8 @@ void ProjectPreferences::load()
{
SettingsManager* settMan = SettingsManager::getInstance();
const QString& part = m_defaults ? "defaults" : m_settName;
QString Name = settMan->getValue( part, "project", "Name" ).toString();
QString Dir = settMan->getValue( part, "project", "path" ).toString();
QString Name = settMan->getValue( part, "ProjectName" ).toString();
QString Dir = settMan->getValue( part, "ProjectDirectory" ).toString();
m_ui.ProjectNameLineEdit->setText( Name );
m_ui.ProjectDirectoryLineEdit->setText( Dir );
......@@ -52,7 +52,9 @@ void ProjectPreferences::load()
void ProjectPreferences::save()
{
SettingsManager* settMan = SettingsManager::getInstance();
QVariant name( m_ui.ProjectNameLineEdit->text() );
QVariant dir( m_ui.ProjectDirectoryLineEdit->text() );
settMan->setValue( m_settName, "ProjectName", QVariant( m_ui.ProjectNameLineEdit->text() ) );
settMan->setValue( m_settName, "ProjectDirectory", QVariant( m_ui.ProjectDirectoryLineEdit->text() ) );
settMan->setValue( m_settName, "ProjectName", name );
settMan->setValue( m_settName, "ProjectDirectory", dir );
}
Supports Markdown
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