diff --git a/src/dialogs/SaveProjectDialog.cpp b/src/dialogs/SaveProjectDialog.cpp index 4baee57f..724641c2 100644 --- a/src/dialogs/SaveProjectDialog.cpp +++ b/src/dialogs/SaveProjectDialog.cpp @@ -78,7 +78,8 @@ void SaveProjectDialog::on_buttonBox_clicked(QAbstractButton *button) void SaveProjectDialog::accept() { 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.files", ui->filesCheckBox->isChecked()) .set("prj.git", ui->gitCheckBox->isChecked()) diff --git a/src/utils/Configuration.cpp b/src/utils/Configuration.cpp index 60cd9fdf..d9902db2 100644 --- a/src/utils/Configuration.cpp +++ b/src/utils/Configuration.cpp @@ -71,7 +71,6 @@ QString Configuration::getDirProjects() void Configuration::setDirProjects(const QString &dir) { - Core()->setConfig("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); -} \ No newline at end of file +}