Pseudo fix for #422

This commit is contained in:
xarkes 2018-03-28 11:25:40 +02:00
parent 8afc02dd4e
commit d4903c0f3d
2 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,8 @@ void SaveProjectDialog::on_buttonBox_clicked(QAbstractButton *button)
void SaveProjectDialog::accept() void SaveProjectDialog::accept()
{ {
TempConfig tempConfig; TempConfig tempConfig;
tempConfig.set("dir.projects", ui->projectsDirEdit->text().toUtf8().constData()) Config()->setDirProjects(ui->projectsDirEdit->text().toUtf8().constData());
tempConfig.set("dir.projects", Config()->getDirProjects())
.set("prj.simple", ui->simpleCheckBox->isChecked()) .set("prj.simple", ui->simpleCheckBox->isChecked())
.set("prj.files", ui->filesCheckBox->isChecked()) .set("prj.files", ui->filesCheckBox->isChecked())
.set("prj.git", ui->gitCheckBox->isChecked()) .set("prj.git", ui->gitCheckBox->isChecked())

View File

@ -71,7 +71,6 @@ QString Configuration::getDirProjects()
void Configuration::setDirProjects(const QString &dir) void Configuration::setDirProjects(const QString &dir)
{ {
Core()->setConfig("dir.projects", dir);
s.setValue("dir.projects", dir); s.setValue("dir.projects", dir);
} }
@ -286,4 +285,4 @@ void Configuration::setConfig(const QString &key, const QVariant &value)
} }
Core()->setConfig(key, value); Core()->setConfig(key, value);
} }